From 227026b7adf4907f2b6abe692acf9439e9ced325 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 3 Nov 2024 22:30:23 -0500 Subject: [PATCH] nir/opt_algebraic: add another 64-bit pattern clpeak Signed-off-by: Alyssa Rosenzweig Reviewed-by: Karol Herbst Part-of: --- src/compiler/nir/nir_opt_algebraic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index d751b1d8c6c..fb23d196aa1 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -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)),