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 <alyssa.rosenzweig@collabora.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Signed-off-by: Isabella Basso <isabellabdoamaral@usp.br> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20965>
This commit is contained in:

committed by
Marge Bot

parent
a553d3cd29
commit
59fea8af3a
@@ -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)),
|
||||
|
Reference in New Issue
Block a user