summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-12-20 18:02:29 -0800
committerMatt Turner <[email protected]>2014-12-29 10:08:18 -0800
commit798c094e6266bf53b332f332e82a90c338c49915 (patch)
treebb2fc6c76ecd163fbd1584a32f89b6321e35c907 /src/mesa
parentd61c519822850ce90ae167f3658c014898f54cd1 (diff)
i965/vec4: Do separate copy followed by constant propagation after opt_vector_float().
total instructions in shared programs: 5877012 -> 5876617 (-0.01%) instructions in affected programs: 33140 -> 32745 (-1.19%) From before the commit that allows VF constant propagation (which hurt some programs) to here, the results are: total instructions in shared programs: 5877951 -> 5876617 (-0.02%) instructions in affected programs: 123444 -> 122110 (-1.08%) with no programs hurt. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 296223ccdd0..f389392636f 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -1800,7 +1800,8 @@ vec4_visitor::run()
if (opt_vector_float()) {
opt_cse();
- opt_copy_propagation();
+ opt_copy_propagation(false);
+ opt_copy_propagation(true);
dead_code_eliminate();
}