diff --git a/.pick_status.json b/.pick_status.json index f15622641ed..d7ed60c9a28 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2362,7 +2362,7 @@ "description": "i965/vec4: Ignore swizzle of VGRF for use by var_range_end()", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": "48dfb30f9231c22a6af6885dbc9ef86dc2edde1e" }, diff --git a/src/intel/compiler/brw_vec4_cse.cpp b/src/intel/compiler/brw_vec4_cse.cpp index 585676a9042..accc037af8d 100644 --- a/src/intel/compiler/brw_vec4_cse.cpp +++ b/src/intel/compiler/brw_vec4_cse.cpp @@ -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;