i965/vec4: Try constant propagate after copy propagate made progress.
authorMatt Turner <mattst88@gmail.com>
Tue, 24 Jun 2014 05:29:57 +0000 (22:29 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 25 Jun 2014 20:00:57 +0000 (13:00 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp

index 2019d15..db6063c 100644 (file)
@@ -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;
       }