llvm.org GIT mirror llvm / 1f98469
Demote this opt remark to DEBUG. 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 Adam Nemet 1 year, 9 months ago
2 changed file(s) with 1 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
302302 if (Visited[CI->getParent()] != ESCAPED) {
303303 // If the escape point was part way through the block, calls after the
304304 // escape point wouldn't have been put into DeferredTails.
305 ORE->emit([&]() {
306 return OptimizationRemark(DEBUG_TYPE, "tailcall", CI)
307 << "marked as tail call candidate";
308 });
305 DEBUG(dbgs() << "Marked as tail call candidate: " << *CI << "\n");
309306 CI->setTailCall();
310307 Modified = true;
311308 } else {
0 ; RUN: opt %s -tailcallelim -pass-remarks=tailcallelim -o /dev/null 2>&1 | FileCheck %s
11 ; RUN: opt %s -o /dev/null -passes='require,tailcallelim' -pass-remarks=tailcallelim 2>&1 | FileCheck %s
22
3 ; CHECK: /home/davide/pat.c:2:20: marked as tail call candidate
43 ; CHECK: /home/davide/pat.c:2:20: transforming tail recursion into loop
54 define i32 @fib(i32 %n) nounwind ssp {
65 entry: