diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2017-01-22 10:33:58 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2017-01-22 10:33:58 +0000 |
| commit | d4be9f4b8d2ca9d0525960629172e8cc9a792500 (patch) | |
| tree | f482a9167732c711795df39b447066826e312690 /llvm/lib | |
| parent | aa6b187ab1ed7b7fc976ccf5711d54f9fe20a7a1 (diff) | |
| download | bcm5719-llvm-d4be9f4b8d2ca9d0525960629172e8cc9a792500.tar.gz bcm5719-llvm-d4be9f4b8d2ca9d0525960629172e8cc9a792500.zip | |
[PM] Add some debug logging to the new PM inliner to make it easier to
trace its behavior.
llvm-svn: 292756
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/IPO/Inliner.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp index 6e46b4f40dc..ded3ca22927 100644 --- a/llvm/lib/Transforms/IPO/Inliner.cpp +++ b/llvm/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<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()); |

