nir/opt_algebraic: mark fmulz(finite, finite) -> fmul pattern as nsz

No Foz-DB chagnes.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39641>
This commit is contained in:
Georg Lehmann 2026-02-01 16:49:30 +01:00 committed by Marge Bot
parent ea87f1f9bc
commit da7abb1337

View file

@ -279,7 +279,7 @@ optimizations += [
(('fmulz', a, 0.0), 0.0),
(('fmulz', a, -0.0), 0.0),
(('fmulz(nsz)', a, 'b(is_finite_not_zero)'), ('fmul', a, b)),
(('fmulz', 'a(is_finite)', 'b(is_finite)'), ('fmul', a, b), 'true', TestStatus.XFAIL), # XFAIL is fmulz(-1.0, 0.0) being -0.0 instead of +0.0
(('fmulz(nsz)', 'a(is_finite)', 'b(is_finite)'), ('fmul', a, b)),
(('fmulz', a, a), ('fmul', a, a)),
(('ffmaz(nsz)', a, 'b(is_finite_not_zero)', c), ('ffma', a, b, c)),
(('ffmaz', 'a(is_finite)', 'b(is_finite)', c), ('ffma', a, b, c)),