nir: Turn imov/fmov of undef into undef.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 29 Jul 2016 08:29:10 +0000 (01:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 4 Aug 2016 07:40:59 +0000 (00:40 -0700)
commit6aa730000fea84a14b49828a4bb30761d43903bf
tree7846d40a8f82074fbb3ae707d5bb07e28d26c39d
parent12a912586f11ccbc4612532d5ceaf1bdd0cdb45a
nir: Turn imov/fmov of undef into undef.

On Broadwell:

total instructions in shared programs: 11640214 -> 11639872 (-0.00%)
instructions in affected programs: 17744 -> 17402 (-1.93%)
helped: 78
HURT: 0

total spills in shared programs: 2924 -> 2922 (-0.07%)
spills in affected programs: 104 -> 102 (-1.92%)
helped: 1
HURT: 0

total fills in shared programs: 4394 -> 4389 (-0.11%)
fills in affected programs: 237 -> 232 (-2.11%)
helped: 1
HURT: 0

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/nir/nir_opt_undef.c