summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit25217ffaed95a6bddf2b3c67bdf62029e612498b (patch)
tree466be7b0940ddd8b3777654e35aa386d33257d99 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parentba775fe5c7620dc08d5ee86d516266df47c32594 (diff)
downloadbcm5719-llvm-25217ffaed95a6bddf2b3c67bdf62029e612498b.tar.gz
bcm5719-llvm-25217ffaed95a6bddf2b3c67bdf62029e612498b.zip
PPC is not ready for sibcall optimization.
llvm-svn: 94853
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 5219cb73a02..2a4fb024bb6 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud