aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-01-29 23:05:56 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-01-29 23:05:56 +0000
commit54bf84c1b8dcf48083ec4d403d79e57f94346372 (patch)
tree8f4ef2e2f4437f3976a0c85b9fd9d4a944f6d489 /lib/Target/PowerPC/PPCISelLowering.cpp
parenta2440259c7bc10102f92e318329d1d101107862d (diff)
downloadexternal_llvm-54bf84c1b8dcf48083ec4d403d79e57f94346372.zip
external_llvm-54bf84c1b8dcf48083ec4d403d79e57f94346372.tar.gz
external_llvm-54bf84c1b8dcf48083ec4d403d79e57f94346372.tar.bz2
PPC is not ready for sibcall optimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--lib/Target/PowerPC/PPCISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp
index 5219cb7..2a4fb02 100644
--- a/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -2200,6 +2200,9 @@ PPCTargetLowering::IsEligibleForTailCallOptimization(SDValue Callee,
bool isVarArg,
const SmallVectorImpl<ISD::InputArg> &Ins,
SelectionDAG& DAG) const {
+ if (!PerformTailCallOpt)
+ return false;
+
// Variable argument functions are not supported.
if (isVarArg)
return false;