Skip to content

Commit 3e8223b

Browse files
author
Jessica Paquette
committed
[AArch64][GlobalISel] NFC: Remove dead G_BUILD_VECTOR legalization rule
Remove a rule which allows larger scalar types than the destination vector element type. This appears to be irrelevant now that we have G_BUILD_VECTOR_TRUNC. Plus, making a G_BUILD_VECTOR which satisfies this introduces a verifier failure anyway. Differential Revision: https://reviews.llvm.org/D97727
1 parent 32e0645 commit 3e8223b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -636,12 +636,6 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
636636
{v2s64, s64}})
637637
.clampNumElements(0, v4s32, v4s32)
638638
.clampNumElements(0, v2s64, v2s64)
639-
640-
// Deal with larger scalar types, which will be implicitly truncated.
641-
.legalIf([=](const LegalityQuery &Query) {
642-
return Query.Types[0].getScalarSizeInBits() <
643-
Query.Types[1].getSizeInBits();
644-
})
645639
.minScalarSameAs(1, 0);
646640

647641
getActionDefinitionsBuilder(G_CTLZ)

0 commit comments

Comments
 (0)