nir: Collapse repeated bcsels on the same argument.
authorEric Anholt <eric@anholt.net>
Fri, 20 Feb 2015 09:20:34 +0000 (01:20 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 21 Feb 2015 22:57:14 +0000 (14:57 -0800)
commit345c2b288a5f49b82d505eb098847b8e53dde91f
tree2e7f6be7cafedb130dcbffe003cfdb6cac7d471b
parenta38038ca5e329c074f67399a993a653c8e439cae
nir: Collapse repeated bcsels on the same argument.

vc4 results:
total instructions in shared programs: 39881 -> 39794 (-0.22%)
instructions in affected programs:     6302 -> 6215 (-1.38%)

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