From: Eric Anholt Date: Thu, 14 Oct 2010 05:39:06 +0000 (-0700) Subject: i965: Update the live interval when coalescing regs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8613d70da34217b98edb9ac9e0a4c9a6598d0b3;p=mesa.git i965: Update the live interval when coalescing regs. --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index c0fee114a86..e2c7dbde6a5 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -2563,6 +2563,10 @@ fs_visitor::register_coalesce() continue; } + /* Update live interval so we don't have to recalculate. */ + this->virtual_grf_use[inst->src[0].reg] = MAX2(virtual_grf_use[inst->src[0].reg], + virtual_grf_use[inst->dst.reg]); + /* Rewrite the later usage to point at the source of the move to * be removed. */