From 78c773bb3646295e4a4f1fe7d6d10f05758ee48b Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 29 May 2015 18:19:42 -0700 Subject: vc4: Convert from simple_list.h to list.h list.h is a nicer and more familiar set of list functions/macros. --- src/gallium/drivers/vc4/vc4_opt_copy_propagation.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/gallium/drivers/vc4/vc4_opt_copy_propagation.c') 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 && -- cgit v1.2.3