OSDN Git Service

PPC is not ready for sibcall optimization.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 29 Jan 2010 23:05:56 +0000 (23:05 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 29 Jan 2010 23:05:56 +0000 (23:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94853 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 5219cb7..2a4fb02 100644 (file)
@@ -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;