From: Evan Cheng Date: Tue, 26 Jan 2010 23:28:40 +0000 (+0000) Subject: Ignore 'forced' tailcall opt in fastisel mode. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bbba00c8fadd8958fad4521e1a3d76f8ad3ae981;p=oota-llvm.git Ignore 'forced' tailcall opt in fastisel mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94617 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index cca98307c52..e3650af33bf 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/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(CS.getCalledValue()->getType()); const FunctionType *FTy = cast(PT->getElementType());