]> granicus.if.org Git - llvm/commitdiff
Demote this opt remark to DEBUG.
authorAdam Nemet <anemet@apple.com>
Tue, 28 Nov 2017 22:11:00 +0000 (22:11 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 28 Nov 2017 22:11:00 +0000 (22:11 +0000)
From a random opt-stat output:

Top 10 remarks:
  tailcallelim/tailcall          53%
  inline/AlwaysInline            13%
  gvn/LoadClobbered              13%
  inline/Inlined                  8%
  inline/TooCostly                2%
  inline/NoDefinition             2%
  licm/LoadWithLoopInvariantAddressInvalidated  2%
  licm/Hoisted                    1%
  asm-printer/InstructionCount    1%
  prologepilog/StackSize          1%

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319235 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/TailRecursionElimination.cpp
test/Transforms/TailCallElim/opt-remarks-recursion.ll

index 9d6702b0fd0e0b8670e9f6f3bb1b51e8340d7a30..f5aa47f927e1963d8c5a295532c87a353170c39f 100644 (file)
@@ -303,10 +303,7 @@ static bool markTails(Function &F, bool &AllCallsAreTailCalls,
     if (Visited[CI->getParent()] != ESCAPED) {
       // If the escape point was part way through the block, calls after the
       // escape point wouldn't have been put into DeferredTails.
-      ORE->emit([&]() {
-        return OptimizationRemark(DEBUG_TYPE, "tailcall", CI)
-               << "marked as tail call candidate";
-      });
+      DEBUG(dbgs() << "Marked as tail call candidate: " << *CI << "\n");
       CI->setTailCall();
       Modified = true;
     } else {
index c290f795854fa2e35c5b8bfdc60731e3a910aacb..dc68514542263e52a87b3943de239874280002a6 100644 (file)
@@ -1,7 +1,6 @@
 ; RUN: opt %s -tailcallelim -pass-remarks=tailcallelim -o /dev/null 2>&1 | FileCheck %s
 ; RUN: opt %s -o /dev/null -passes='require<opt-remark-emit>,tailcallelim' -pass-remarks=tailcallelim 2>&1 | FileCheck %s
 
-; CHECK: /home/davide/pat.c:2:20: marked as tail call candidate
 ; CHECK: /home/davide/pat.c:2:20: transforming tail recursion into loop
 define i32 @fib(i32 %n) nounwind ssp {
 entry: