pco: lower nir_b2b* ops

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Simon Perretta 2025-07-09 18:09:48 +01:00 committed by Marge Bot
parent fcef4b74ec
commit f2c1f4009b

View file

@ -45,6 +45,13 @@ lower_insert_extract = [
lower_algebraic.extend(lower_insert_extract)
lower_b2b = [
(('b2b32', a), ('ineg', ('b2i32', a))),
(('b2b1', a), ('ine', a, 0)),
]
lower_algebraic.extend(lower_b2b)
lower_scmp = [
# Float comparisons + bool conversions.
(('b2f32', ('flt', a, b)), ('slt', a, 'b@32'), '!options->lower_scmp'),