aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-05-29 21:27:53 -0700
committerEric Anholt <[email protected]>2015-05-29 22:09:53 -0700
commitec1c72d38ea4c709a39c6be9e0ff96bc2a90940f (patch)
tree6f24ae28923bc7cc1ec64720350411501d0290bc
parent78c773bb3646295e4a4f1fe7d6d10f05758ee48b (diff)
vc4: Don't bother with safe list traversal in CSE.
We don't remove or move instructions.
-rw-r--r--src/gallium/drivers/vc4/vc4_opt_cse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_opt_cse.c b/src/gallium/drivers/vc4/vc4_opt_cse.c
index 27d0fae739c..92c8260eb59 100644
--- a/src/gallium/drivers/vc4/vc4_opt_cse.c
+++ b/src/gallium/drivers/vc4/vc4_opt_cse.c
@@ -128,7 +128,7 @@ qir_opt_cse(struct vc4_compile *c)
if (!ht)
return false;
- list_for_each_entry_safe(struct qinst, inst, &c->instructions, link) {
+ list_for_each_entry(struct qinst, inst, &c->instructions, link) {
if (qir_has_side_effects(c, inst) ||
qir_has_side_effect_reads(c, inst)) {
continue;