diff options
author | Connor Abbott <[email protected]> | 2015-02-03 01:49:44 -0500 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2015-02-03 16:00:13 -0500 |
commit | a135f340807139d874ae1d460009cf94786eb13a (patch) | |
tree | 1d6cd71b66477cdab8e36efb2bc64d3b027f02d4 /src/glsl/Makefile.sources | |
parent | 572d1f6e41907096f21743181fd96eda82f51a79 (diff) |
nir: add an optimization to remove useless phi nodes
This removes phi nodes whose sources all point to the same thing.
Shader-db results:
total NIR instructions in shared programs: 2045293 -> 2041209 (-0.20%)
NIR instructions in affected programs: 126564 -> 122480 (-3.23%)
helped: 615
HURT: 0
total FS instructions in shared programs: 4321840 -> 4320392 (-0.03%)
FS instructions in affected programs: 24622 -> 23174 (-5.88%)
helped: 138
HURT: 0
Reviewed-by: Jason Ekstrand <[email protected]>
Tested-by: Jason Ekstrand <[email protected]>
Signed-off-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/Makefile.sources')
-rw-r--r-- | src/glsl/Makefile.sources | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/Makefile.sources b/src/glsl/Makefile.sources index bf6b70bab2a..a580b6e908b 100644 --- a/src/glsl/Makefile.sources +++ b/src/glsl/Makefile.sources @@ -45,6 +45,7 @@ NIR_FILES = \ nir/nir_opt_dce.c \ nir/nir_opt_global_to_local.c \ nir/nir_opt_peephole_select.c \ + nir/nir_opt_remove_phis.c \ nir/nir_print.c \ nir/nir_remove_dead_variables.c \ nir/nir_search.c \ |