[llvm] r286165 - [TRE] Remove dead code

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 7 14:17:37 PST 2016


Author: sanjoy
Date: Mon Nov  7 16:17:37 2016
New Revision: 286165

URL: http://llvm.org/viewvc/llvm-project?rev=286165&view=rev
Log:
[TRE] Remove dead code

Address review by Eli Friedman on rL286147.

Modified:
    llvm/trunk/lib/Transforms/Scalar/TailRecursionElimination.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/TailRecursionElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/TailRecursionElimination.cpp?rev=286165&r1=286164&r2=286165&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/TailRecursionElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/TailRecursionElimination.cpp Mon Nov  7 16:17:37 2016
@@ -256,7 +256,6 @@ static bool markTails(Function &F, bool
           SafeToTail = false;
           break;
         }
-        SafeToTail &= CI->hasOperandBundles();
         if (SafeToTail) {
           emitOptimizationRemark(
               F.getContext(), "tailcallelim", F, CI->getDebugLoc(),




More information about the llvm-commits mailing list