nir: Add variants of some of the comparison simplifications

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 29 January 2015 13:44 UTC

We end up with these from TGSI-to-NIR because the pass generating the comparisons doesn't know if the arg is actually a bool input or not. vc4 results:

total instructions in shared programs: 41801 -> 41508 (-0.70%) instructions in affected programs: 4253 -> 3960 (-6.89%)

fc884ea nir: Add variants of some of the comparison simplifications.
src/glsl/nir/nir_opt_algebraic.py | 4 ++++
1 file changed, 4 insertions(+)

Upstream: cgit.freedesktop.org


  • Share