summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-06-04 18:04:24 +0000
committerDale Johannesen <dalej@apple.com>2010-06-04 18:04:24 +0000
commit8fa8e7fe95db6a8c8581ccfe9db2c9faac819f8d (patch)
treeb774fd050c3b5410e061239fd3377bbeac399412 /lib
parent8af44b687b0ee552b696361e1ab4b2c178ff6f9e (diff)
downloadllvm-8fa8e7fe95db6a8c8581ccfe9db2c9faac819f8d.tar.gz
llvm-8fa8e7fe95db6a8c8581ccfe9db2c9faac819f8d.tar.bz2
llvm-8fa8e7fe95db6a8c8581ccfe9db2c9faac819f8d.tar.xz
More thoroughly disable tails calls by default.
8060143, although this doesn't fix the real problem with tail call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMISelLowering.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp
index 3803937a49..5979091101 100644
--- a/lib/Target/ARM/ARMISelLowering.cpp
+++ b/lib/Target/ARM/ARMISelLowering.cpp
@@ -999,14 +999,14 @@ ARMTargetLowering::LowerCall(SDValue Chain, SDValue Callee,
MachineFunction &MF = DAG.getMachineFunction();
bool IsStructRet = (Outs.empty()) ? false : Outs[0].Flags.isSRet();
bool IsSibCall = false;
+ // Temporarily disable tail calls so things don't break.
+ if (!EnableARMTailCalls)
+ isTailCall = false;
if (isTailCall) {
// Check if it's really possible to do a tail call.
isTailCall = IsEligibleForTailCallOptimization(Callee, CallConv,
isVarArg, IsStructRet, MF.getFunction()->hasStructRetAttr(),
Outs, Ins, DAG);
- // Temporarily disable tail calls so things don't break.
- if (!EnableARMTailCalls)
- isTailCall = false;
// We don't support GuaranteedTailCallOpt for ARM, only automatically
// detected sibcalls.
if (isTailCall) {