nir: lower fexp2(fmul(flog2(a), 2)) to fmul(a, a)
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 5 Feb 2018 14:08:03 +0000 (15:08 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 22 Feb 2018 19:40:45 +0000 (20:40 +0100)
commit63fb30c6743a2d8dfb13f5fee18e0f950822e562
tree3a8d9c2c87cf6531db75961931f390aaf8a05c1a
parentb18997876fb4bd82c406d0f6995554c096337888
nir: lower fexp2(fmul(flog2(a), 2)) to fmul(a, a)

Similar for the 4 case.

Suggested by Bas.

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