From: Isabella Basso Date: Fri, 10 Mar 2023 20:20:10 +0000 (-0300) Subject: nir/algebraic: remove duplicate bool conversion lowerings X-Git-Tag: upstream/23.3.3~11793 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59fea8af3af3fb5bd8133dc6af7c000ebc5915dc;p=platform%2Fupstream%2Fmesa.git 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: --- 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)),