nir: Rearrange bcsel with two bcsel sources
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 1 Aug 2018 23:51:35 +0000 (16:51 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 4 Aug 2018 08:12:03 +0000 (01:12 -0700)
commitd49eab27573024699dd288f194a3ced4be16671a
treeba732ae65e7c68fc8260bc6c56080fe30e319e1f
parentb92fded6eb6c4367813f2cb69a150fa9d3ce61f1
nir: Rearrange bcsel with two bcsel sources

All Gen platforms had pretty similar results. (Skylake shown)
total instructions in shared programs: 14277220 -> 14277216 (<.01%)
instructions in affected programs: 422 -> 418 (-0.95%)
helped: 2
HURT: 0

total cycles in shared programs: 532577908 -> 532577848 (<.01%)
cycles in affected programs: 2800 -> 2740 (-2.14%)
helped: 2
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