summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-06-23 22:29:57 -0700
committerMatt Turner <[email protected]>2014-06-25 13:00:57 -0700
commit9a8acafa47558cafeb37f80f4b30061ac1962c69 (patch)
tree54c37c60177ae716dee9b1dad4ba2892c249ae26 /src
parentd5432e3f45ee3c5b5b824ad941a40c01025a275d (diff)
i965/vec4: Try constant propagate after copy propagate made progress.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp6
1 files 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 2019d157df9..db6063c3bcc 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;
}