mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-07 03:58:19 +02:00
nir/opt_algebraic: remove manual patterns that optimizes flt([0.0, 1.0], 0.0)
Range analysis can figure this out. No Foz-DB changes. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40389>
This commit is contained in:
parent
530bb4278c
commit
607f26814f
1 changed files with 0 additions and 5 deletions
|
|
@ -1915,11 +1915,6 @@ optimizations.extend([
|
|||
|
||||
(('fmin(nsz)', 'a(is_a_number_not_negative)', 1.0), ('fsat', a), '!options->lower_fsat'),
|
||||
|
||||
# The result of the multiply must be in [-1, 0], so the result of the ffma
|
||||
# must be in [0, 1].
|
||||
(('flt', ('fadd', ('fmul', ('fsat', a), ('fneg', ('fsat', a))), 1.0), 0.0), False),
|
||||
(('flt', ('fadd', ('fneg', ('fmul', ('fsat', a), ('fsat', a))), 1.0), 0.0), False),
|
||||
|
||||
(('fneu', 'a(is_not_zero)', 0.0), True),
|
||||
(('feq', 'a(is_not_zero)', 0.0), False),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue