nir/opt_algebraic: add another 64-bit pattern

clpeak

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31964>
This commit is contained in:
Alyssa Rosenzweig 2024-11-03 22:30:23 -05:00
parent 2a3f133fd0
commit 227026b7ad

View file

@ -1966,6 +1966,8 @@ optimizations.extend([
(('u2u32', ('imul(is_used_once)', 'a@64', b)),
('imul', ('u2u32', a), ('u2u32', b))),
(('u2f32', ('u2u64', 'a@32')), ('u2f32', a)),
# Redundant trip through 8-bit
(('i2i16', ('u2u8', ('iand', 'a@16', 1))), ('iand', 'a@16', 1)),
(('u2u16', ('u2u8', ('iand', 'a@16', 1))), ('iand', 'a@16', 1)),