summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-02-04 06:47:24 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-02-04 06:47:24 +0000
commitaeba2250a571d9d324a9e0691357c9ec266f010b (patch)
treeba9af670f2d9cdff84970db430a756ef24277d6d /llvm/lib/Target
parent107a1fbf611a47d845b79d545e37c8f5d8f68c7b (diff)
downloadbcm5719-llvm-aeba2250a571d9d324a9e0691357c9ec266f010b.tar.gz
bcm5719-llvm-aeba2250a571d9d324a9e0691357c9ec266f010b.zip
Re-enable x86 tail call optimization.
llvm-svn: 95295
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index a44afb502c6..40f720b168b 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -52,7 +52,6 @@ using namespace llvm;
STATISTIC(NumTailCalls, "Number of tail calls");
-static cl::opt<unsigned> TailCallLimit("tailcall-limit", cl::init(0));
static cl::opt<bool>
DisableMMX("disable-mmx", cl::Hidden, cl::desc("Disable use of MMX"));
@@ -2271,8 +2270,6 @@ X86TargetLowering::IsEligibleForTailCallOptimization(SDValue Callee,
// Look for obvious safe cases to perform tail call optimization that does not
// requite ABI changes. This is what gcc calls sibcall.
- if (NumTailCalls >= TailCallLimit)
- return false;
// Do not tail call optimize vararg calls for now.
if (isVarArg)
OpenPOWER on IntegriCloud