diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2010-01-26 23:28:40 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2010-01-26 23:28:40 +0000 |
| commit | 75766332f9aaa28c439d9b3a46e9b0f4e20df16c (patch) | |
| tree | 22f79fdd2ee86518e64d6cb7352559ab965ba2b9 | |
| parent | 56e9b5975d0865cd01c51588cf5a8557b84239eb (diff) | |
| download | bcm5719-llvm-75766332f9aaa28c439d9b3a46e9b0f4e20df16c.tar.gz bcm5719-llvm-75766332f9aaa28c439d9b3a46e9b0f4e20df16c.zip | |
Ignore 'forced' tailcall opt in fastisel mode.
llvm-svn: 94617
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index cca98307c52..e3650af33bf 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -1243,11 +1243,6 @@ 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 (X86::IsEligibleForTailCallOpt(CC)) - return false; - // Let SDISel handle vararg functions. const PointerType *PT = cast<PointerType>(CS.getCalledValue()->getType()); const FunctionType *FTy = cast<FunctionType>(PT->getElementType()); |

