Skip to content

Commit f273fa9

Browse files
committed
Remove the isTargetMachO() check and change EORWrr to EORXrr
1 parent ba7a7c6 commit f273fa9

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
@@ -28971,7 +28971,6 @@ bool AArch64TargetLowering::useLoadStackGuardNode(const Module &M) const {
2897128971
bool AArch64TargetLowering::useStackGuardXorFP() const {
2897228972
// Currently only MSVC CRTs XOR the frame pointer into the stack guard value.
2897328973
return Subtarget->getTargetTriple().isOSMSVCRT() &&
28974-
!Subtarget->isTargetMachO() &&
2897528974
!getTargetMachine().Options.EnableGlobalISel;
2897628975
}
2897728976

llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2281,7 +2281,7 @@ bool AArch64InstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
22812281
!Subtarget.getTargetLowering()
22822282
->getTargetMachine()
22832283
.Options.EnableGlobalISel) {
2284-
BuildMI(MBB, MI, DL, get(AArch64::EORWrr), Reg)
2284+
BuildMI(MBB, MI, DL, get(AArch64::EORXrr), Reg)
22852285
.addReg(Reg, RegState::Kill)
22862286
.addReg(AArch64::SP);
22872287
}

0 commit comments

Comments
 (0)