mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
nir/opt_algebraic: use correct syntax to create exact fsat
Fixes:3b06824e4c("nir/opt_algebraic: optimize some post peephole select patterns") Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commitd8ef28671d) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
This commit is contained in:
parent
0ef489a580
commit
275ea941a3
2 changed files with 3 additions and 3 deletions
|
|
@ -444,7 +444,7 @@
|
|||
"description": "nir/opt_algebraic: use correct syntax to create exact fsat",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "3b06824e4c489a6e7f6f1ba1a89b1878d40dc23e",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -747,8 +747,8 @@ optimizations.extend([
|
|||
|
||||
(('bcsel(is_only_used_as_float)', ('feq', a, 'b(is_not_zero)'), b, a), a),
|
||||
(('bcsel(is_only_used_as_float)', ('fneu', a, 'b(is_not_zero)'), a, b), a),
|
||||
(('bcsel', ignore_exact('feq', a, 0), 0, ('fsat', ('fmul', a, 'b(is_a_number)'))), ('fsat!', ('fmul', a, b))),
|
||||
(('bcsel', ignore_exact('fneu', a, 0), ('fsat', ('fmul', a, 'b(is_a_number)')), 0), ('fsat!', ('fmul', a, b))),
|
||||
(('bcsel', ignore_exact('feq', a, 0), 0, ('fsat', ('fmul', a, 'b(is_a_number)'))), ('!fsat', ('fmul', a, b))),
|
||||
(('bcsel', ignore_exact('fneu', a, 0), ('fsat', ('fmul', a, 'b(is_a_number)')), 0), ('!fsat', ('fmul', a, b))),
|
||||
(('bcsel', ignore_exact('feq', a, 0), b, ('fadd', a, 'b(is_not_zero)')), ('fadd', a, b)),
|
||||
(('bcsel', ignore_exact('fneu', a, 0), ('fadd', a, 'b(is_not_zero)'), b), ('fadd', a, b)),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue