forked from OSchip/llvm-project
[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
This commit is contained in:
parent
32e0645276
commit
3e8223b165
|
@ -636,12 +636,6 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
|
|||
{v2s64, s64}})
|
||||
.clampNumElements(0, v4s32, v4s32)
|
||||
.clampNumElements(0, v2s64, v2s64)
|
||||
|
||||
// Deal with larger scalar types, which will be implicitly truncated.
|
||||
.legalIf([=](const LegalityQuery &Query) {
|
||||
return Query.Types[0].getScalarSizeInBits() <
|
||||
Query.Types[1].getSizeInBits();
|
||||
})
|
||||
.minScalarSameAs(1, 0);
|
||||
|
||||
getActionDefinitionsBuilder(G_CTLZ)
|
||||
|
|
Loading…
Reference in New Issue