summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-30 17:32:30 -0700
committerTomeu Vizoso <[email protected]>2019-09-03 13:55:29 +0200
commita058e90138f39c8bcaf0a302ea8870ba7ddc684d (patch)
treec29dd0c90a6aab9a821a7b9fbeb57bdc5c90ab97 /src/panfrost/midgard
parent41ebac638aa3b8f1648df52452f78241be8f2da5 (diff)
pan/midgard: Remove mir_rewrite_index_*_tag
These helpers are unused, as flagged by cppcheck. Signed-off-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/compiler.h2
-rw-r--r--src/panfrost/midgard/mir.c27
2 files changed, 0 insertions, 29 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index b202a92aeea..8612bab7686 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -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);
diff --git a/src/panfrost/midgard/mir.c b/src/panfrost/midgard/mir.c
index 104e7661507..8874937aa5d 100644
--- a/src/panfrost/midgard/mir.c
+++ b/src/panfrost/midgard/mir.c
@@ -174,19 +174,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)
{
mir_foreach_instr_global(ctx, ins) {
@@ -195,20 +182,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)
{
mir_rewrite_index_src(ctx, old, new);