[llvm] r292756 - [PM] Add some debug logging to the new PM inliner to make it easier to

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 22 02:33:58 PST 2017


Author: chandlerc
Date: Sun Jan 22 04:33:58 2017
New Revision: 292756

URL: http://llvm.org/viewvc/llvm-project?rev=292756&view=rev
Log:
[PM] Add some debug logging to the new PM inliner to make it easier to
trace its behavior.

Modified:
    llvm/trunk/lib/Transforms/IPO/Inliner.cpp

Modified: llvm/trunk/lib/Transforms/IPO/Inliner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Inliner.cpp?rev=292756&r1=292755&r2=292756&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Inliner.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Inliner.cpp Sun Jan 22 04:33:58 2017
@@ -814,6 +814,8 @@ PreservedAnalyses InlinerPass::run(LazyC
     if (F.hasFnAttribute(Attribute::OptimizeNone))
       continue;
 
+    DEBUG(dbgs() << "Inlining calls in: " << F.getName() << "\n");
+
     // Get the remarks emission analysis for the caller.
     auto &ORE = FAM.getResult<OptimizationRemarkEmitterAnalysis>(F);
 
@@ -916,6 +918,7 @@ PreservedAnalyses InlinerPass::run(LazyC
     // re-use the exact same logic for updating the call graph to reflect the
     // change..
     C = &updateCGAndAnalysisManagerForFunctionPass(CG, *C, N, AM, UR);
+    DEBUG(dbgs() << "Updated inlining SCC: " << *C << "\n");
     RC = &C->getOuterRefSCC();
   } while (!Nodes.empty());
 




More information about the llvm-commits mailing list