From 59fea8af3af3fb5bd8133dc6af7c000ebc5915dc Mon Sep 17 00:00:00 2001 From: Isabella Basso Date: Fri, 10 Mar 2023 17:20:10 -0300 Subject: [PATCH] nir/algebraic: remove duplicate bool conversion lowerings While [1] added some boolean conversion lowering patterns, those were already dealt with on [2]. [1] - b86305bb ("nir/algebraic: collapse conversion opcodes (many patterns)") [2] - d7e0d47b ("nir/algebraic: nir: Add a bunch of b2[if] optimizations") Fixes: b86305bb ("nir/algebraic: collapse conversion opcodes (many patterns)") Acked-by: Alyssa Rosenzweig Reviewed-by: Georg Lehmann Signed-off-by: Isabella Basso Part-of: --- src/compiler/nir/nir_opt_algebraic.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index a9493cb..311b4ce 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -996,11 +996,6 @@ for s in [16, 32, 64]: # floatS -> floatB -> floatS ==> identity (('~f2f{}'.format(s), ('f2f{}'.format(B), 'a@{}'.format(s))), a), - # bool1 -> typeB -> typeS ==> bool1 -> typeS - (('f2f{}'.format(s), ('b2f{}'.format(B), 'a@1')), ('b2f{}'.format(s), a)), - (('i2i{}'.format(s), ('b2i{}'.format(B), 'a@1')), ('b2i{}'.format(s), a)), - (('u2u{}'.format(s), ('b2i{}'.format(B), 'a@1')), ('b2i{}'.format(s), a)), - # floatS -> floatB -> intB ==> floatS -> intB (('f2u{}'.format(B), ('f2f{}'.format(B), 'a@{}'.format(s))), ('f2u{}'.format(B), a)), (('f2i{}'.format(B), ('f2f{}'.format(B), 'a@{}'.format(s))), ('f2i{}'.format(B), a)), -- 2.7.4