aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_opt_remove_phis.c
Commit message (Collapse)AuthorAgeFilesLines
* nir: Remove the mem_ctx parameter from ssa_def_rewrite_usesJason Ekstrand2015-09-111-4/+1
| | | | Reviewed-by: Thomas Helland <[email protected]>
* nir: add an optimization to remove useless phi nodesConnor Abbott2015-02-031-0/+109
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]>