nir/search: Extend 'a@bool' to handle a couple of system values.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 17 Aug 2016 22:03:00 +0000 (15:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Aug 2016 08:27:27 +0000 (01:27 -0700)
commit3a9e6102b4baae3f50956e5f150c9e59138f4cc0
treeaf9a57937081034d707c613bb302371747a5255f
parente8543feba790b68edfcacc9554967118029b88f8
nir/search: Extend 'a@bool' to handle a couple of system values.

load_front_face and load_helper_invocation produce booleans.

On Broadwell:

total instructions in shared programs: 11638956 -> 11638011 (-0.01%)
instructions in affected programs: 115093 -> 114148 (-0.82%)
helped: 628
HURT: 14

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_search.c