aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/compiler.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-07-23 20:01:44 -0700
committerAlyssa Rosenzweig <[email protected]>2019-07-25 06:37:21 -0700
commit63385a3fdb6a42013be74091d0264a09550766ee (patch)
tree57940578b7fe3d826bb2c0cd27bc79c6bdcb728f /src/panfrost/midgard/compiler.h
parent5534fdb7bf6d7d377318724fbe480ead1e0962c3 (diff)
pan/midgard: Add mir_single_use helper
Helps as an optimization heuristic. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/compiler.h')
-rw-r--r--src/panfrost/midgard/compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index 2d5f07451a5..50e1846f893 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -373,6 +373,7 @@ 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_src_single(midgard_instruction *ins, unsigned old, unsigned new);
+bool mir_single_use(compiler_context *ctx, unsigned value);
/* MIR printing */