diff options
author | Matt Turner <[email protected]> | 2014-07-11 22:31:39 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-08-18 18:56:30 -0700 |
commit | 596990d91e2a4c4a3a303c6c2da623bf1840771b (patch) | |
tree | 7b5c73946e88aebe1110ccbcad2654bd4f9c5dac /src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp | |
parent | d688667c7f8ab69b079b7c85dccc2b70e5863e32 (diff) |
i965: Add and use foreach_block macro.
Use this as an opportunity to rename 'block_num' to 'num'. block->num is
clear, and block->block_num has always been redundant.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp b/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp index 03c7ee64538..5c79296f5a8 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp @@ -129,9 +129,7 @@ fs_visitor::opt_peephole_sel() calculate_cfg(); - for (int b = 0; b < cfg->num_blocks; b++) { - bblock_t *block = cfg->blocks[b]; - + foreach_block (block, cfg) { /* IF instructions, by definition, can only be found at the ends of * basic blocks. */ |