diff options
author | Jason Ekstrand <[email protected]> | 2018-10-10 22:36:52 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-10-11 15:21:19 -0500 |
commit | d7e0d47b9de3e759d5ed7b299fa7f4e7cbd8760e (patch) | |
tree | 5836308d807c3f1cf157d5847ce7c757558ca997 /scripts | |
parent | 0e0dc596a2c008c32def103e175fcd5b7116f38f (diff) |
nir: Add a bunch of b2[if] optimizations
The b2f and b2i conversions always produce zero or one which are both
representable in every type and size. Since b2i and b2f support all bit
sizes, we can just get rid of the conversion opcode.
total instructions in shared programs: 15089335 -> 15084368 (-0.03%)
instructions in affected programs: 212564 -> 207597 (-2.34%)
helped: 896
HURT: 0
total cycles in shared programs: 369831123 -> 369826267 (<.01%)
cycles in affected programs: 2008647 -> 2003791 (-0.24%)
helped: 693
HURT: 216
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions