mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 08:30:10 +01:00
nir/algebraic: Generalize an optimization
There's nothing boolean about (a | ~a) ~> -1 Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
This commit is contained in:
parent
69618a8678
commit
6068be543b
1 changed files with 1 additions and 1 deletions
|
|
@ -373,7 +373,7 @@ optimizations = [
|
|||
(('iand', ('uge(is_used_once)', a, c), ('uge', b, c)), ('uge', ('umin', a, b), c)),
|
||||
|
||||
(('ior', 'a@bool', ('ieq', a, False)), True),
|
||||
(('ior', 'a@bool', ('inot', a)), True),
|
||||
(('ior', a, ('inot', a)), -1),
|
||||
|
||||
(('iand', ('ieq', 'a@32', 0), ('ieq', 'b@32', 0)), ('ieq', ('ior', 'a@32', 'b@32'), 0)),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue