Skip to content

Commit 65acb8c

Browse files
committed
Remove the isTargetMachO() check and change EORWrr to EORXrr
1 parent 414995a commit 65acb8c

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
@@ -29245,7 +29245,6 @@ bool AArch64TargetLowering::useLoadStackGuardNode(const Module &M) const {
2924529245
bool AArch64TargetLowering::useStackGuardXorFP() const {
2924629246
// Currently only MSVC CRTs XOR the frame pointer into the stack guard value.
2924729247
return Subtarget->getTargetTriple().isOSMSVCRT() &&
29248-
!Subtarget->isTargetMachO() &&
2924929248
!getTargetMachine().Options.EnableGlobalISel;
2925029249
}
2925129250

llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2502,7 +2502,7 @@ bool AArch64InstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
25022502
!Subtarget.getTargetLowering()
25032503
->getTargetMachine()
25042504
.Options.EnableGlobalISel) {
2505-
BuildMI(MBB, MI, DL, get(AArch64::EORWrr), Reg)
2505+
BuildMI(MBB, MI, DL, get(AArch64::EORXrr), Reg)
25062506
.addReg(Reg, RegState::Kill)
25072507
.addReg(AArch64::SP);
25082508
}

0 commit comments

Comments
 (0)