mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 02:10:12 +01:00
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>
This commit is contained in:
parent
3fd4280759
commit
9f02e3ab03
1 changed files with 2 additions and 0 deletions
|
|
@ -149,6 +149,8 @@ optimizations = [
|
|||
(('ior', a, 0), a),
|
||||
(('fxor', a, a), 0.0),
|
||||
(('ixor', a, a), 0),
|
||||
(('fxor', a, 0.0), a),
|
||||
(('ixor', a, 0), a),
|
||||
(('inot', ('inot', a)), a),
|
||||
# DeMorgan's Laws
|
||||
(('iand', ('inot', a), ('inot', b)), ('inot', ('ior', a, b))),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue