Skip to content

Commit

Permalink
Revert "[AArch64][SME] Disable GlobalISel/FastISel for SME functions."
Browse files Browse the repository at this point in the history
Reverting the patch due to a buildbot failure.

This reverts commit e1e260c.
  • Loading branch information
sdesmalen-arm committed Nov 9, 2022
1 parent e07a704 commit 8bcf5df
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 381 deletions.
7 changes: 0 additions & 7 deletions llvm/lib/Target/AArch64/AArch64FastISel.cpp
Expand Up @@ -5032,8 +5032,6 @@ bool AArch64FastISel::selectAtomicCmpXchg(const AtomicCmpXchgInst *I) {
}

bool AArch64FastISel::fastSelectInstruction(const Instruction *I) {
if (TLI.fallBackToDAGISel(*I))
return false;
switch (I->getOpcode()) {
default:
break;
Expand Down Expand Up @@ -5116,10 +5114,5 @@ bool AArch64FastISel::fastSelectInstruction(const Instruction *I) {

FastISel *AArch64::createFastISel(FunctionLoweringInfo &FuncInfo,
const TargetLibraryInfo *LibInfo) {

SMEAttrs CallerAttrs(*FuncInfo.Fn);
if (CallerAttrs.hasZAState() ||
(!CallerAttrs.hasStreamingInterface() && CallerAttrs.hasStreamingBody()))
return nullptr;
return new AArch64FastISel(FuncInfo, LibInfo);
}
9 changes: 0 additions & 9 deletions llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Expand Up @@ -22054,15 +22054,6 @@ bool AArch64TargetLowering::fallBackToDAGISel(const Instruction &Inst) const {
return true;
}

// Checks to allow the use of SME instructions
if (auto *Base = dyn_cast<CallBase>(&Inst)) {
auto CallerAttrs = SMEAttrs(*Inst.getFunction());
auto CalleeAttrs = SMEAttrs(*Base);
if (CallerAttrs.requiresSMChange(CalleeAttrs,
/*BodyOverridesInterface=*/false) ||
CallerAttrs.requiresLazySave(CalleeAttrs))
return true;
}
return false;
}

Expand Down
6 changes: 0 additions & 6 deletions llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp
Expand Up @@ -537,12 +537,6 @@ bool AArch64CallLowering::fallBackToDAGISel(const MachineFunction &MF) const {
LLVM_DEBUG(dbgs() << "Falling back to SDAG because we don't support no-NEON\n");
return true;
}

SMEAttrs Attrs(F);
if (Attrs.hasNewZAInterface() ||
(!Attrs.hasStreamingInterface() && Attrs.hasStreamingBody()))
return true;

return false;
}

Expand Down

0 comments on commit 8bcf5df

Please sign in to comment.