summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-05-20 00:54:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-05-20 00:54:37 +0000
commite8d2e9eb351724552453425578fdcd2fd39c8fc0 (patch)
treeee3296c7e1f95b73d2cd6e2fe61fd6b144097b09 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parent48abe3ee0c727ac84b454eac4ec3e7794f89ea88 (diff)
downloadbcm5719-llvm-e8d2e9eb351724552453425578fdcd2fd39c8fc0.tar.gz
bcm5719-llvm-e8d2e9eb351724552453425578fdcd2fd39c8fc0.zip
Revert r131664 and fix it in instcombine instead. rdar://9467055
llvm-svn: 131708
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index e9a996328f8..2c90aa28fe7 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -1182,7 +1182,7 @@ ARMTargetLowering::LowerCall(SDValue Chain, SDValue Callee,
bool IsStructRet = (Outs.empty()) ? false : Outs[0].Flags.isSRet();
bool IsSibCall = false;
// Temporarily disable tail calls so things don't break.
- if (!EnableARMTailCalls)
+ if (!EnableARMTailCalls && !Subtarget->supportsTailCall())
isTailCall = false;
if (isTailCall) {
// Check if it's really possible to do a tail call.
OpenPOWER on IntegriCloud