Skip to content

Commit 23a823a

Browse files
committed
[NFC] Add debug msgs to inliner
1 parent 6765708 commit 23a823a

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
@@ -1116,6 +1116,8 @@ bool SILPerformanceInliner::inlineCallsIntoFunction(SILFunction *Caller) {
11161116
if (!Caller->shouldOptimize())
11171117
return false;
11181118

1119+
LLVM_DEBUG(llvm::dbgs() << "Inlining calls into " << Caller->getName()
1120+
<< "\n");
11191121
// First step: collect all the functions we want to inline. We
11201122
// don't change anything yet so that the dominator information
11211123
// remains valid.
@@ -1143,6 +1145,7 @@ bool SILPerformanceInliner::inlineCallsIntoFunction(SILFunction *Caller) {
11431145
// ownership... do not inline. The two modes are incompatible, so skip this
11441146
// apply site for now.
11451147
if (!Callee->hasOwnership() && Caller->hasOwnership()) {
1148+
LLVM_DEBUG(llvm::dbgs() << "Not inlining non-ossa " << Caller->getName() << "\n");
11461149
continue;
11471150
}
11481151

0 commit comments

Comments
 (0)