intel/assembler: Add labels support
[mesa.git] / src / intel / compiler / brw_vec4_cse.cpp
index 585676a904280230f1ae0312f081170fc9d4d91a..accc037af8dead1c15a52a3f00a4f04bf1c3e4ac 100644 (file)
@@ -288,7 +288,7 @@ vec4_visitor::opt_cse_local(bblock_t *block, const vec4_live_variables &live)
              * more -- a sure sign they'll fail operands_match().
              */
             if (src->file == VGRF) {
-               if (live.var_range_end(var_from_reg(alloc, *src), 8) < ip) {
+               if (live.var_range_end(var_from_reg(alloc, dst_reg(*src)), 8) < ip) {
                   entry->remove();
                   ralloc_free(entry);
                   break;