[llvm-commits] [llvm] r94853 - /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp

Evan Cheng evan.cheng at apple.com
Fri Jan 29 15:05:56 PST 2010


Author: evancheng
Date: Fri Jan 29 17:05:56 2010
New Revision: 94853

URL: http://llvm.org/viewvc/llvm-project?rev=94853&view=rev
Log:
PPC is not ready for sibcall optimization.

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=94853&r1=94852&r2=94853&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Fri Jan 29 17:05:56 2010
@@ -2200,6 +2200,9 @@
                                                      bool isVarArg,
                                       const SmallVectorImpl<ISD::InputArg> &Ins,
                                                      SelectionDAG& DAG) const {
+  if (!PerformTailCallOpt)
+    return false;
+
   // Variable argument functions are not supported.
   if (isVarArg)
     return false;





More information about the llvm-commits mailing list