projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c773b
)
vc4: Don't bother with safe list traversal in CSE.
author
Eric Anholt
<eric@anholt.net>
Sat, 30 May 2015 04:27:53 +0000
(21:27 -0700)
committer
Eric Anholt
<eric@anholt.net>
Sat, 30 May 2015 05:09:53 +0000
(22:09 -0700)
We don't remove or move instructions.
src/gallium/drivers/vc4/vc4_opt_cse.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_opt_cse.c
b/src/gallium/drivers/vc4/vc4_opt_cse.c
index 27d0fae739c4baa8c0f5d3845b318d0a916be792..92c8260eb591ab55d22ecdc17e95b3abc9b37540 100644
(file)
--- 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;