diff options
author | Matt Turner <[email protected]> | 2014-09-01 13:42:51 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-09-24 09:42:46 -0700 |
commit | 90bfeb22444df6ce779251522e47bf169e130f8e (patch) | |
tree | 5246dc1482cbb452955ef976ef59bafb1339cee3 /src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp | |
parent | 2ff0ff880c14f246a419ae3949b2462617e485e1 (diff) |
i965/vec4: Don't use instruction list after calculating the cfg.
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp index fe47b0f6e0b..65564c998e3 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp @@ -30,6 +30,7 @@ */ #include "brw_vec4.h" +#include "brw_cfg.h" extern "C" { #include "main/macros.h" } @@ -336,7 +337,7 @@ vec4_visitor::opt_copy_propagation() memset(&entries, 0, sizeof(entries)); - foreach_in_list(vec4_instruction, inst, &instructions) { + foreach_block_and_inst(block, vec4_instruction, inst, cfg) { /* This pass only works on basic blocks. If there's flow * control, throw out all our information and start from * scratch. |