Skip to content

Commit ea0f86e

Browse files
authored
Merge pull request #85408 from aidan-hall/164256638
Only print SIL before sub-passes of selected passes with -sil-print-every-subpass
2 parents e0f50c8 + ec14566 commit ea0f86e

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)