nir: Add opt_algebraic rules for xor with zero.
authorMatt Turner <mattst88@gmail.com>
Tue, 2 Feb 2016 00:34:46 +0000 (16:34 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 9 Feb 2016 04:38:17 +0000 (20:38 -0800)
commit9f02e3ab03da91162fc0c64b91a2e5ff213dff9b
treed0ea942b44856bfb480e5f87a7452882da4c623a
parent3fd42807593eb68d83a36215fc5fc49b3adc7724
nir: Add opt_algebraic rules for xor with zero.

instructions in affected programs: 668 -> 664 (-0.60%)
helped: 4

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/compiler/nir/nir_opt_algebraic.py