Re-enable x86 tail call optimization.
[oota-llvm.git] / lib / Target / X86 / X86ISelLowering.cpp
index a44afb502c6dc3170b6081186a3c7b78dc8bcfdb..40f720b168b8f96549dc6e3930ab78c7e81330c2 100644 (file)
@@ -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)