Mesa (master): i965: Update the live interval when coalescing regs.
Eric Anholt
anholt at kemper.freedesktop.org
Thu Oct 14 18:04:19 UTC 2010
Module: Mesa
Branch: master
Commit: b8613d70da34217b98edb9ac9e0a4c9a6598d0b3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8613d70da34217b98edb9ac9e0a4c9a6598d0b3
Author: Eric Anholt <eric at anholt.net>
Date: Wed Oct 13 22:39:06 2010 -0700
i965: Update the live interval when coalescing regs.
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index c0fee11..e2c7dbd 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.
*/
More information about the mesa-commit
mailing list