summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_liveness.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-10-03 16:01:51 -0400
committerAlyssa Rosenzweig <[email protected]>2019-10-03 22:29:50 -0400
commitc59fae0fef4a4977811384c515ce35319c145708 (patch)
tree4cf940422cd9cdba61680aa21b09371accaa4ced /src/panfrost/midgard/midgard_liveness.c
parent3f4be0d199f6516b5e7598ac210ac9d03949aee6 (diff)
pan/midgard: Remove mir_has_multiple_writes
We already enforce this with the SSA/register distinction in the backend. There is no need to duplicate this logic merely for an assert. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_liveness.c')
-rw-r--r--src/panfrost/midgard/midgard_liveness.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/panfrost/midgard/midgard_liveness.c b/src/panfrost/midgard/midgard_liveness.c
index 155e1cc3514..4766603a885 100644
--- a/src/panfrost/midgard/midgard_liveness.c
+++ b/src/panfrost/midgard/midgard_liveness.c
@@ -90,19 +90,3 @@ mir_is_live_after(compiler_context *ctx, midgard_block *block, midgard_instructi
return succ;
}
-
-/* Just a quick check -- is it written more than once? (I.e. are we definitely
- * not SSA?) */
-
-bool
-mir_has_multiple_writes(compiler_context *ctx, int dest)
-{
- unsigned write_count = 0;
-
- mir_foreach_instr_global(ctx, ins) {
- if (ins->dest == dest)
- write_count++;
- }
-
- return write_count > 1;
-}