function live in set. This will give us tGPR for Thumb1 and GPR otherwise,
so the copy will be spillable. rdar://
8224931
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109293
91177308-0d34-0410-b5e6-
96231b3b80d8
}
// Return LR, which contains the return address. Mark it an implicit live-in.
- unsigned Reg = MF.addLiveIn(ARM::LR, ARM::GPRRegisterClass);
+ unsigned Reg = MF.addLiveIn(ARM::LR, getRegClassFor(MVT::i32));
return DAG.getCopyFromReg(DAG.getEntryNode(), dl, Reg, VT);
}