[Mesa-dev] [PATCH 7/7] i965/vec4: Try constant propagate after copy propagate made progress.

Matt Turner mattst88 at gmail.com
Tue Jun 24 12:16:55 PDT 2014


---
 src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
index 2019d15..db6063c 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
@@ -367,8 +367,10 @@ vec4_visitor::opt_copy_propagation()
 	 if (c != 4)
 	    continue;
 
-	 if (try_constant_propagate(brw, inst, i, values) ||
-	     try_copy_propagate(brw, inst, i, values))
+	 if (try_constant_propagate(brw, inst, i, values))
+            progress = true;
+
+	 if (try_copy_propagate(brw, inst, i, values))
 	    progress = true;
       }
 
-- 
1.8.3.2



More information about the mesa-dev mailing list