Skip to content

Commit 00dddda

Browse files
committed
Change DAG.getRegister to DAG.getCopyFromReg
1 parent da07652 commit 00dddda

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29101,9 +29101,10 @@ bool AArch64TargetLowering::useStackGuardXorFP() const { return true; }
2910129101
SDValue AArch64TargetLowering::emitStackGuardXorFP(SelectionDAG &DAG,
2910229102
SDValue Val,
2910329103
const SDLoc &DL) const {
29104-
return DAG.getNode(
29105-
ISD::XOR, DL, Val.getValueType(), Val,
29106-
DAG.getRegister(getStackPointerRegisterToSaveRestore(), MVT::i64));
29104+
return DAG.getNode(ISD::XOR, DL, Val.getValueType(), Val,
29105+
DAG.getCopyFromReg(DAG.getEntryNode(), DL,
29106+
getStackPointerRegisterToSaveRestore(),
29107+
MVT::i64));
2910729108
}
2910829109

2910929110
unsigned AArch64TargetLowering::combineRepeatedFPDivisors() const {

0 commit comments

Comments
 (0)