Skip to content

Commit ec14566

Browse files
committed
Optimizer: SILPrintEverySubpass: restrict to selected functions
1 parent 1e446b4 commit ec14566

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SILOptimizer/PassManager/PassManager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,8 @@ bool SILPassManager::continueWithNextSubpassRun(
487487

488488
unsigned subPass = numSubpassesRun++;
489489

490-
if (isFunctionSelectedForPrinting(function) && SILPrintEverySubpass) {
490+
if (SILPrintEverySubpass && isFunctionSelectedForPrinting(function) &&
491+
doPrintBefore(trans, function)) {
491492
dumpPassInfo("*** SIL function before ", trans, function);
492493
llvm::dbgs() << " *** sub-pass " << subPass << " for ";
493494
if (forTransformee) {

0 commit comments

Comments
 (0)