nir: add is_used_once for fmul(fexp2(a), fexp2(b)) to fexp2(fadd(a, b))
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 5 Feb 2018 15:07:45 +0000 (16:07 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 22 Feb 2018 19:40:43 +0000 (20:40 +0100)
commitb18997876fb4bd82c406d0f6995554c096337888
tree09e53f27b9cff42e5f8af74cd9205b259765adbd
parenta01e9996b590a51b3a699b7f6dddda7fc866b362
nir: add is_used_once for fmul(fexp2(a), fexp2(b)) to fexp2(fadd(a, b))

Otherwise the code size increases because the original fexp2()
instructions can't be deleted.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/nir/nir_opt_algebraic.py