From: Chandler Carruth Date: Sun, 22 Jan 2017 10:33:58 +0000 (+0000) Subject: [PM] Add some debug logging to the new PM inliner to make it easier to X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36a10eedff74178a83c607fd8db750524c47538a;p=llvm [PM] Add some debug logging to the new PM inliner to make it easier to trace its behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292756 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp index 6e46b4f40dc..ded3ca22927 100644 --- a/lib/Transforms/IPO/Inliner.cpp +++ b/lib/Transforms/IPO/Inliner.cpp @@ -814,6 +814,8 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC, 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(F); @@ -916,6 +918,7 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC, // 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());