nir: Optimize a + neg(a)
authorThomas Helland <thomashelland90@gmail.com>
Sat, 28 Feb 2015 19:32:32 +0000 (20:32 +0100)
committerMatt Turner <mattst88@gmail.com>
Wed, 11 Mar 2015 21:21:05 +0000 (14:21 -0700)
commit8fb8fe46fa565dceedacd95287c836004b0fade2
tree0ce38abae80357d39f51a1cd73fdc88295e34f1c
parent0525f2e851f5f6f53b5f83c8dcdfa48f9838133b
nir: Optimize a + neg(a)

Shader-db i965 instructions:
total instructions in shared programs: 1711180 -> 1711159 (-0.00%)
instructions in affected programs:     825 -> 804 (-2.55%)
helped:                                9
HURT:                                  0
GAINED:                                3
LOST:                                  3

Shader-db NIR instructions:
total instructions in shared programs: 606187 -> 606179 (-0.00%)
instructions in affected programs:     298 -> 290 (-2.68%)
helped:                                4
HURT:                                  0
GAINED:                                0
LOST:                                  0

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Signed-off-by: Thomas Helland <thomashelland90@gmail.com>
src/glsl/nir/nir_opt_algebraic.py