nir: Add a flag for lowering fneg/ineg.
authorEric Anholt <eric@anholt.net>
Wed, 28 Jan 2015 18:52:53 +0000 (10:52 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Feb 2015 22:47:51 +0000 (14:47 -0800)
commit42a8ace66e539957b31ea96fe9a2aaacdb90f30e
tree9275b5449af97f958a3f942ea9d4a2176fdfbcfd
parentcb95a228e81a963d77f50058c7406db0ad3bccac
nir: Add a flag for lowering fneg/ineg.

vc4 cse/algebraic-disabled stats:
total instructions in shared programs: 44911 -> 44732 (-0.40%)
instructions in affected programs:     11371 -> 11192 (-1.57%)

v2: Fix broken iabs(isub(0, a)) transformation.
v3: Rebase to master (no TGSI->NIR present)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
src/glsl/nir/nir.h
src/glsl/nir/nir_opt_algebraic.py