nir: Recognize (a < b || a < c) as a < max(b, c).
authorMatt Turner <mattst88@gmail.com>
Thu, 26 Mar 2015 17:09:21 +0000 (10:09 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 1 Apr 2015 20:43:57 +0000 (13:43 -0700)
commit97e6c1b9579573444487d0ac6d9a6b73c067b495
tree737fcf66adc89ff2aa16e90d174af3eabbfb29d8
parenta2b6e908cfa1b85bc3eed9d31869ec3768b3daa2
nir: Recognize (a < b || a < c) as a < max(b, c).

Doesn't work for analogous && cases, because of NaNs.

total instructions in shared programs: 6195712 -> 6194829 (-0.01%)
instructions in affected programs:     42000 -> 41117 (-2.10%)
helped:                                403

Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/nir/nir_opt_algebraic.py