Mesa (master): i965/fs: Reset reg_from when we can't coalesce.
Matt Turner
mattst88 at kemper.freedesktop.org
Fri Apr 11 23:26:08 UTC 2014
Module: Mesa
Branch: master
Commit: 509b2a652305836947bc59bc07616f71cc202c5a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=509b2a652305836947bc59bc07616f71cc202c5a
Author: Matt Turner <mattst88 at gmail.com>
Date: Wed Apr 9 14:04:10 2014 -0700
i965/fs: Reset reg_from when we can't coalesce.
Not setting this would prevented coalescing after a failed attempt if
the sources for both MOVs were the same.
total instructions in shared programs: 1654531 -> 1650224 (-0.26%)
instructions in affected programs: 423167 -> 418860 (-1.02%)
GAINED: 2
LOST: 0
Reviewed-by: Eric Anholt <eric at anholt.net>
---
src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp b/src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp
index 6e30d16..4e3b611 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp
@@ -162,6 +162,7 @@ fs_visitor::register_coalesce()
if (!can_coalesce_vars(live_intervals, &instructions, inst,
var_to[i], var_from[i])) {
can_coalesce = false;
+ reg_from = -1;
break;
}
}
More information about the mesa-commit
mailing list