diff options
author | Matt Turner <mattst88@gmail.com> | 2014-07-11 22:31:39 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-08-18 18:56:30 -0700 |
commit | 596990d91e2a4c4a3a303c6c2da623bf1840771b (patch) | |
tree | 7b5c73946e88aebe1110ccbcad2654bd4f9c5dac /src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | |
parent | d688667c7f8ab69b079b7c85dccc2b70e5863e32 (diff) | |
download | external_mesa3d-596990d91e2a4c4a3a303c6c2da623bf1840771b.zip external_mesa3d-596990d91e2a4c4a3a303c6c2da623bf1840771b.tar.gz external_mesa3d-596990d91e2a4c4a3a303c6c2da623bf1840771b.tar.bz2 |
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_saturate_propagation.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp index 0e04d3f..d65b2f1 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp @@ -95,9 +95,8 @@ fs_visitor::opt_saturate_propagation() calculate_live_intervals(); - for (int b = 0; b < cfg->num_blocks; b++) { - progress = opt_saturate_propagation_local(this, cfg->blocks[b]) - || progress; + foreach_block (block, cfg) { + progress = opt_saturate_propagation_local(this, block) || progress; } if (progress) |