nir: allow propagation of if evaluation for bcsel
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 1 Nov 2018 21:53:16 +0000 (08:53 +1100)
committerTimothy Arceri <tarceri@localhost.localdomain>
Fri, 2 Nov 2018 04:56:34 +0000 (15:56 +1100)
commitc7bdda8aa5f1fb1d797512a0a54a032153755c6c
tree6c80166b5d7d1d386be11ece59ada94a8af11e45
parent677b496b6bd07cbe05dd429344ba525619cdd08c
nir: allow propagation of if evaluation for bcsel

Shader-db results Skylake:

total instructions in shared programs: 13109035 -> 13109024 (<.01%)
instructions in affected programs: 4777 -> 4766 (-0.23%)
helped: 11
HURT: 0

total cycles in shared programs: 332090418 -> 332090443 (<.01%)
cycles in affected programs: 19474 -> 19499 (0.13%)
helped: 6
HURT: 4

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_opt_if.c