aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-05-29 18:19:42 -0700
committerEric Anholt <[email protected]>2015-05-29 22:09:53 -0700
commit78c773bb3646295e4a4f1fe7d6d10f05758ee48b (patch)
tree03c7c8693810c71bf4a5a90ee8781fc2670d1426 /src/gallium/drivers/vc4/vc4_opt_copy_propagation.c
parent21a22a61c02a1d1807ff03df8eb8fa16ebdd1b74 (diff)
vc4: Convert from simple_list.h to list.h
list.h is a nicer and more familiar set of list functions/macros.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_opt_copy_propagation.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_opt_copy_propagation.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c b/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c
index 5189a401248..d6d2fbf257f 100644
--- a/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c
+++ b/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c
@@ -38,13 +38,10 @@ bool
qir_opt_copy_propagation(struct vc4_compile *c)
{
bool progress = false;
- struct simple_node *node;
bool debug = false;
struct qreg *movs = calloc(c->num_temps, sizeof(struct qreg));
- foreach(node, &c->instructions) {
- struct qinst *inst = (struct qinst *)node;
-
+ list_for_each_entry(struct qinst, inst, &c->instructions, link) {
for (int i = 0; i < qir_get_op_nsrc(inst->op); i++) {
int index = inst->src[i].index;
if (inst->src[i].file == QFILE_TEMP &&