Skip to content

Commit e750fa5

Browse files
committed
Ensure Neon is available
1 parent 747bb85 commit e750fa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23594,7 +23594,7 @@ static SDValue combineV3I8LoadExt(LoadSDNode *LD, SelectionDAG &DAG) {
2359423594
static SDValue combineVScale1Load(LoadSDNode *LD, SelectionDAG &DAG,
2359523595
const AArch64Subtarget *Subtarget) {
2359623596
EVT MemVT = LD->getMemoryVT();
23597-
if (!MemVT.isScalableVector() ||
23597+
if (!Subtarget->isNeonAvailable() || !MemVT.isScalableVector() ||
2359823598
Subtarget->getMaxSVEVectorSizeInBits() != AArch64::SVEBitsPerBlock)
2359923599
return SDValue();
2360023600

@@ -23918,7 +23918,7 @@ static SDValue combineVScale1Store(StoreSDNode *ST, SelectionDAG &DAG,
2391823918
SDValue Value = ST->getValue();
2391923919
EVT ValueVT = Value.getValueType();
2392023920
if (ST->isVolatile() || !Subtarget->isLittleEndian() ||
23921-
!ValueVT.isScalableVector() ||
23921+
!Subtarget->isNeonAvailable() || !ValueVT.isScalableVector() ||
2392223922
Subtarget->getMaxSVEVectorSizeInBits() != AArch64::SVEBitsPerBlock)
2392323923
return SDValue();
2392423924

0 commit comments

Comments
 (0)