forked from OSchip/llvm-project
[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:
parent
aa6b187ab1
commit
d4be9f4b8d
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue