Skip to content

Commit 883968c

Browse files
committed
Add LLVM_DEBUG msgs to inliner
1 parent 4d34d4b commit 883968c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SILOptimizer/Transforms/PerformanceInliner.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,8 @@ bool SILPerformanceInliner::inlineCallsIntoFunction(SILFunction *Caller) {
10121012
if (!Caller->shouldOptimize())
10131013
return false;
10141014

1015+
LLVM_DEBUG(llvm::dbgs() << "Inlining calls into " << Caller->getName()
1016+
<< "\n");
10151017
// First step: collect all the functions we want to inline. We
10161018
// don't change anything yet so that the dominator information
10171019
// remains valid.
@@ -1039,6 +1041,7 @@ bool SILPerformanceInliner::inlineCallsIntoFunction(SILFunction *Caller) {
10391041
// ownership... do not inline. The two modes are incompatible, so skip this
10401042
// apply site for now.
10411043
if (!Callee->hasOwnership() && Caller->hasOwnership()) {
1044+
LLVM_DEBUG(llvm::dbgs() << "Not inlining non-ossa " << Caller->getName() << "\n");
10421045
continue;
10431046
}
10441047

0 commit comments

Comments
 (0)