mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
nir/algebraic: Partially revert 3f782cdd25
I'm not sure what the logic was, but there is no opportunity for anything to flush to zero here. 'a' is a Boolean value, and b2f produces 1.0 or 0.0. This was originally part of https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3765/. Reviewed-by: Matt Turner <mattst88@gmail.com> Cc: Andres Gomez <agomez@igalia.com> Cc: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Cc: Connor Abbott <cwabbott0@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8910>
This commit is contained in:
parent
5923742356
commit
ed138f2861
1 changed files with 1 additions and 1 deletions
|
|
@ -466,7 +466,7 @@ optimizations.extend([
|
|||
(('ine', ('iadd', a, b), a), ('ine', b, 0)),
|
||||
|
||||
(('feq', ('b2f', 'a@1'), 0.0), ('inot', a)),
|
||||
(('~fneu', ('b2f', 'a@1'), 0.0), a),
|
||||
(('fneu', ('b2f', 'a@1'), 0.0), a),
|
||||
(('ieq', ('b2i', 'a@1'), 0), ('inot', a)),
|
||||
(('ine', ('b2i', 'a@1'), 0), a),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue