pan/midgard: Remove mir_rewrite_index_*_tag
These helpers are unused, as flagged by cppcheck. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
This commit is contained in:
parent
41ebac638a
commit
a058e90138
|
@ -496,10 +496,8 @@ void mir_set_swizzle(midgard_instruction *ins, unsigned idx, unsigned new);
|
|||
void mir_rewrite_index(compiler_context *ctx, unsigned old, unsigned new);
|
||||
void mir_rewrite_index_src(compiler_context *ctx, unsigned old, unsigned new);
|
||||
void mir_rewrite_index_dst(compiler_context *ctx, unsigned old, unsigned new);
|
||||
void mir_rewrite_index_dst_tag(compiler_context *ctx, unsigned old, unsigned new, unsigned tag);
|
||||
void mir_rewrite_index_dst_single(midgard_instruction *ins, unsigned old, unsigned new);
|
||||
void mir_rewrite_index_src_single(midgard_instruction *ins, unsigned old, unsigned new);
|
||||
void mir_rewrite_index_src_tag(compiler_context *ctx, unsigned old, unsigned new, unsigned tag);
|
||||
void mir_rewrite_index_src_swizzle(compiler_context *ctx, unsigned old, unsigned new, unsigned swizzle);
|
||||
bool mir_single_use(compiler_context *ctx, unsigned value);
|
||||
bool mir_special_index(compiler_context *ctx, unsigned idx);
|
||||
|
|
|
@ -173,19 +173,6 @@ mir_rewrite_index_src_swizzle(compiler_context *ctx, unsigned old, unsigned new,
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
mir_rewrite_index_src_tag(compiler_context *ctx, unsigned old, unsigned new, unsigned tag)
|
||||
{
|
||||
mir_foreach_instr_global(ctx, ins) {
|
||||
if (ins->type != tag)
|
||||
continue;
|
||||
|
||||
mir_rewrite_index_src_single(ins, old, new);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
mir_rewrite_index_dst(compiler_context *ctx, unsigned old, unsigned new)
|
||||
{
|
||||
|
@ -194,20 +181,6 @@ mir_rewrite_index_dst(compiler_context *ctx, unsigned old, unsigned new)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
mir_rewrite_index_dst_tag(compiler_context *ctx, unsigned old, unsigned new, unsigned tag)
|
||||
{
|
||||
mir_foreach_instr_global(ctx, ins) {
|
||||
if (ins->type != tag)
|
||||
continue;
|
||||
|
||||
if (ins->dest == old)
|
||||
ins->dest = new;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
mir_rewrite_index(compiler_context *ctx, unsigned old, unsigned new)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue