1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00

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

trace its behavior.

llvm-svn: 292756
This commit is contained in:
Chandler Carruth 2017-01-22 10:33:58 +00:00
parent 4cdaf5c01a
commit 0169785c5f

View File

@ -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<OptimizationRemarkEmitterAnalysis>(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());