nir: When faced with a csel on !condition, just flip the arguments.
authorEric Anholt <eric@anholt.net>
Fri, 20 Feb 2015 09:18:46 +0000 (01:18 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 21 Feb 2015 22:57:14 +0000 (14:57 -0800)
commita38038ca5e329c074f67399a993a653c8e439cae
treeb6dc9be990932837cdd79e77d75adcd2160bc9ce
parent8e1152cb33e53a9d31a6c239dd77b0b4b7613ea8
nir: When faced with a csel on !condition, just flip the arguments.

total NIR instructions in shared programs: 39426 -> 39411 (-0.04%)
NIR instructions in affected programs:     3748 -> 3733 (-0.40%)

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_opt_algebraic.py