i965/nir: Make use of nir_opt_undef
authorBoyan Ding <boyan.j.ding@gmail.com>
Fri, 21 Aug 2015 13:42:45 +0000 (21:42 +0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 28 Aug 2015 06:33:49 +0000 (23:33 -0700)
commit86c57ebe0ed1acc98545746058862db7429412da
treee051d2c75ea2be56d454370587f7549b3bb807c3
parent559b8842fa2d315f009a039e7bbc503c524de894
i965/nir: Make use of nir_opt_undef

Shader-db result on Ivy Bridge:
total instructions in shared programs: 145484 -> 145445 (-0.03%)
instructions in affected programs:     225 -> 186 (-17.33%)
helped:                                5
HURT:                                  0

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
src/mesa/drivers/dri/i965/brw_nir.c