Remove some code that doesn't appear to do anything. All the ARM call
instructions already have implicit defs of LR. The comment suggests that this is intended to fix something like pr6111, but it doesn't really do that either. llvm-svn: 108186
This commit is contained in:
parent
80be44a2ac
commit
8a2bdc8231
|
@ -1284,11 +1284,6 @@ ARMTargetLowering::LowerCall(SDValue Chain, SDValue Callee,
|
|||
? (isLocalARMFunc ? ARMISD::CALL_PRED : ARMISD::CALL)
|
||||
: ARMISD::CALL_NOLINK;
|
||||
}
|
||||
if (CallOpc == ARMISD::CALL_NOLINK && !Subtarget->isThumb1Only()) {
|
||||
// implicit def LR - LR mustn't be allocated as GRP:$dst of CALL_NOLINK
|
||||
Chain = DAG.getCopyToReg(Chain, dl, ARM::LR, DAG.getUNDEF(MVT::i32),InFlag);
|
||||
InFlag = Chain.getValue(1);
|
||||
}
|
||||
|
||||
std::vector<SDValue> Ops;
|
||||
Ops.push_back(Chain);
|
||||
|
|
Loading…
Reference in New Issue