projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aec6744
)
i965/nir: enable the dead control flow optimization
author
Connor Abbott
<cwabbott0@gmail.com>
Fri, 1 May 2015 06:51:12 +0000
(
02:51
-0400)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Tue, 1 Sep 2015 08:48:04 +0000
(
01:48
-0700)
total instructions in shared programs:
7541551
->
7541381
(-0.00%)
instructions in affected programs: 3054 -> 2884 (-5.57%)
helped: 29
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_nir.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_nir.c
b/src/mesa/drivers/dri/i965/brw_nir.c
index 247b223f2e2cb42adcd078f3eca176b071753808..8f3edc5cf012bab060bf00410e1e719822713ea4 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_nir.c
+++ b/
src/mesa/drivers/dri/i965/brw_nir.c
@@
-61,6
+61,8
@@
nir_optimize(nir_shader *nir, bool is_scalar)
nir_validate_shader(nir);
progress |= nir_opt_constant_folding(nir);
nir_validate_shader(nir);
+ progress |= nir_opt_dead_cf(nir);
+ nir_validate_shader(nir);
progress |= nir_opt_remove_phis(nir);
nir_validate_shader(nir);
progress |= nir_opt_undef(nir);