Skip to content

Commit 2b02cb2

Browse files
committed
Remove the isTargetMachO() check and change EORWrr to EORXrr
1 parent c61707a commit 2b02cb2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29099,7 +29099,6 @@ bool AArch64TargetLowering::useLoadStackGuardNode(const Module &M) const {
2909929099
bool AArch64TargetLowering::useStackGuardXorFP() const {
2910029100
// Currently only MSVC CRTs XOR the frame pointer into the stack guard value.
2910129101
return Subtarget->getTargetTriple().isOSMSVCRT() &&
29102-
!Subtarget->isTargetMachO() &&
2910329102
!getTargetMachine().Options.EnableGlobalISel;
2910429103
}
2910529104

llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2316,7 +2316,7 @@ bool AArch64InstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
23162316
!Subtarget.getTargetLowering()
23172317
->getTargetMachine()
23182318
.Options.EnableGlobalISel) {
2319-
BuildMI(MBB, MI, DL, get(AArch64::EORWrr), Reg)
2319+
BuildMI(MBB, MI, DL, get(AArch64::EORXrr), Reg)
23202320
.addReg(Reg, RegState::Kill)
23212321
.addReg(AArch64::SP);
23222322
}

0 commit comments

Comments
 (0)