mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
nir: Optimize boolean ieq/ine with an immediate
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26120>
This commit is contained in:
parent
2d49f834b2
commit
3af5af429e
1 changed files with 4 additions and 0 deletions
|
|
@ -656,6 +656,10 @@ optimizations.extend([
|
|||
(('fneu', ('b2f', 'a@1'), 0.0), a),
|
||||
(('ieq', ('b2i', 'a@1'), 0), ('inot', a)),
|
||||
(('ine', ('b2i', 'a@1'), 0), a),
|
||||
(('ieq', 'a@1', False), ('inot', a)),
|
||||
(('ieq', 'a@1', True), a),
|
||||
(('ine', 'a@1', False), a),
|
||||
(('ine', 'a@1', True), ('inot', a)),
|
||||
|
||||
(('fneu', ('u2f', a), 0.0), ('ine', a, 0)),
|
||||
(('feq', ('u2f', a), 0.0), ('ieq', a, 0)),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue