summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-07-12 20:22:45 +0000
committerBob Wilson <bob.wilson@apple.com>2010-07-12 20:22:45 +0000
commit8a2bdc8231755d08b9bdcc66e7976a2505ae630a (patch)
treecd1d93241d0c723c87df11227063334c4a1f1138 /llvm/lib
parent80be44a2acbf5f0fe6eb5a9c9216df183c21f114 (diff)
downloadbcm5719-llvm-8a2bdc8231755d08b9bdcc66e7976a2505ae630a.tar.gz
bcm5719-llvm-8a2bdc8231755d08b9bdcc66e7976a2505ae630a.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index e60a2b14f1f..2d4426eb067 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -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);
OpenPOWER on IntegriCloud