Skip to content

Commit 8bcf5df

Browse files
committed
Revert "[AArch64][SME] Disable GlobalISel/FastISel for SME functions."
Reverting the patch due to a buildbot failure. This reverts commit e1e260c.
1 parent e07a704 commit 8bcf5df

File tree

4 files changed

+0
-381
lines changed

4 files changed

+0
-381
lines changed

llvm/lib/Target/AArch64/AArch64FastISel.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5032,8 +5032,6 @@ bool AArch64FastISel::selectAtomicCmpXchg(const AtomicCmpXchgInst *I) {
50325032
}
50335033

50345034
bool AArch64FastISel::fastSelectInstruction(const Instruction *I) {
5035-
if (TLI.fallBackToDAGISel(*I))
5036-
return false;
50375035
switch (I->getOpcode()) {
50385036
default:
50395037
break;
@@ -5116,10 +5114,5 @@ bool AArch64FastISel::fastSelectInstruction(const Instruction *I) {
51165114

51175115
FastISel *AArch64::createFastISel(FunctionLoweringInfo &FuncInfo,
51185116
const TargetLibraryInfo *LibInfo) {
5119-
5120-
SMEAttrs CallerAttrs(*FuncInfo.Fn);
5121-
if (CallerAttrs.hasZAState() ||
5122-
(!CallerAttrs.hasStreamingInterface() && CallerAttrs.hasStreamingBody()))
5123-
return nullptr;
51245117
return new AArch64FastISel(FuncInfo, LibInfo);
51255118
}

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22054,15 +22054,6 @@ bool AArch64TargetLowering::fallBackToDAGISel(const Instruction &Inst) const {
2205422054
return true;
2205522055
}
2205622056

22057-
// Checks to allow the use of SME instructions
22058-
if (auto *Base = dyn_cast<CallBase>(&Inst)) {
22059-
auto CallerAttrs = SMEAttrs(*Inst.getFunction());
22060-
auto CalleeAttrs = SMEAttrs(*Base);
22061-
if (CallerAttrs.requiresSMChange(CalleeAttrs,
22062-
/*BodyOverridesInterface=*/false) ||
22063-
CallerAttrs.requiresLazySave(CalleeAttrs))
22064-
return true;
22065-
}
2206622057
return false;
2206722058
}
2206822059

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -537,12 +537,6 @@ bool AArch64CallLowering::fallBackToDAGISel(const MachineFunction &MF) const {
537537
LLVM_DEBUG(dbgs() << "Falling back to SDAG because we don't support no-NEON\n");
538538
return true;
539539
}
540-
541-
SMEAttrs Attrs(F);
542-
if (Attrs.hasNewZAInterface() ||
543-
(!Attrs.hasStreamingInterface() && Attrs.hasStreamingBody()))
544-
return true;
545-
546540
return false;
547541
}
548542

0 commit comments

Comments
 (0)