nir: Transform expressions of b2f(a) and b2f(b) to a ^^ b
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 2 Aug 2018 02:33:24 +0000 (19:33 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 4 Aug 2018 08:12:03 +0000 (01:12 -0700)
commitc658b6c4c8ecf99de35065381ceec5bef7d7ecdf
treec0d565b21bf2a3bcbe8cdfe9e5f76bb2daab1b92
parent3aca80aabccaa2a785bd6d25f73bd1935d4dd35b
nir: Transform expressions of b2f(a) and b2f(b) to a ^^ b

All Gen platforms had pretty similar results. (Skylake shown)
total instructions in shared programs: 14276892 -> 14276886 (<.01%)
instructions in affected programs: 484 -> 478 (-1.24%)
helped: 2
HURT: 0

total cycles in shared programs: 532578397 -> 532578395 (<.01%)
cycles in affected programs: 3522 -> 3520 (-0.06%)
helped: 1
HURT: 0

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
src/compiler/nir/nir_opt_algebraic.py