diff options
author | Matt Turner <mattst88@gmail.com> | 2014-06-28 20:02:51 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-07-01 08:55:52 -0700 |
commit | 2e90d1fb62a6ef53c15eff76e242c510145178a9 (patch) | |
tree | 57ea18f128ff1fa1a4c76a90ad06376d509b6a6b /src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | |
parent | ec1b2d6aa075c678f0eb0405be64253450f995a1 (diff) | |
download | external_mesa3d-2e90d1fb62a6ef53c15eff76e242c510145178a9.zip external_mesa3d-2e90d1fb62a6ef53c15eff76e242c510145178a9.tar.gz external_mesa3d-2e90d1fb62a6ef53c15eff76e242c510145178a9.tar.bz2 |
i965/fs: Pass cfg to calculate_live_intervals().
We've often created the CFG immediately before, so use it when
available.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
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 | 4 |
1 files changed, 2 insertions, 2 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 079eb2e..1287adb 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp @@ -93,10 +93,10 @@ fs_visitor::opt_saturate_propagation() { bool progress = false; - calculate_live_intervals(); - cfg_t cfg(&instructions); + calculate_live_intervals(&cfg); + for (int b = 0; b < cfg.num_blocks; b++) { progress = opt_saturate_propagation_local(this, cfg.blocks[b]) || progress; |