summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-06-28 20:02:51 -0700
committerMatt Turner <mattst88@gmail.com>2014-07-01 08:55:52 -0700
commit2e90d1fb62a6ef53c15eff76e242c510145178a9 (patch)
tree57ea18f128ff1fa1a4c76a90ad06376d509b6a6b /src/mesa/drivers/dri/i965/brw_fs_cse.cpp
parentec1b2d6aa075c678f0eb0405be64253450f995a1 (diff)
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_cse.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_cse.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
index 381c5697f1..5727801158 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
@@ -317,9 +317,8 @@ fs_visitor::opt_cse()
{
bool progress = false;
- calculate_live_intervals();
-
cfg_t cfg(&instructions);
+ calculate_live_intervals(&cfg);
for (int b = 0; b < cfg.num_blocks; b++) {
bblock_t *block = cfg.blocks[b];