aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_vec4_cse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/compiler/brw_vec4_cse.cpp')
-rw-r--r--src/intel/compiler/brw_vec4_cse.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_vec4_cse.cpp b/src/intel/compiler/brw_vec4_cse.cpp
index 2a4217249e8..c7d55788f00 100644
--- a/src/intel/compiler/brw_vec4_cse.cpp
+++ b/src/intel/compiler/brw_vec4_cse.cpp
@@ -288,7 +288,8 @@ vec4_visitor::opt_cse_local(bblock_t *block)
* more -- a sure sign they'll fail operands_match().
*/
if (src->file == VGRF) {
- if (var_range_end(var_from_reg(alloc, dst_reg(*src)), 8) < ip) {
+ if (live_intervals->var_range_end(
+ var_from_reg(alloc, *src), 8) < ip) {
entry->remove();
ralloc_free(entry);
break;