diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2010-01-27 00:00:57 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2010-01-27 00:00:57 +0000 |
| commit | d10089a5b4e1562a0fefbb3a707005edf8c47683 (patch) | |
| tree | d1a444f4e7936c34d01d74127ad230f38a3ebb30 | |
| parent | bac7498f8e0adb8ce53b20840afe97a8173d07a4 (diff) | |
| download | bcm5719-llvm-d10089a5b4e1562a0fefbb3a707005edf8c47683.tar.gz bcm5719-llvm-d10089a5b4e1562a0fefbb3a707005edf8c47683.zip | |
Restore to pre-94570 state.
llvm-svn: 94625
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index e3650af33bf..94dec7ce355 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -31,6 +31,7 @@ #include "llvm/Support/CallSite.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/GetElementPtrTypeIterator.h" +#include "llvm/Target/TargetOptions.h" using namespace llvm; namespace { @@ -1243,6 +1244,11 @@ bool X86FastISel::X86SelectCall(Instruction *I) { CC != CallingConv::X86_FastCall) return false; + // fastcc with -tailcallopt is intended to provide a guaranteed + // tail call optimization. Fastisel doesn't know how to do that. + if (CC == CallingConv::Fast && PerformTailCallOpt) + return false; + // Let SDISel handle vararg functions. const PointerType *PT = cast<PointerType>(CS.getCalledValue()->getType()); const FunctionType *FTy = cast<FunctionType>(PT->getElementType()); |

