Skip to content

Commit b8062f2

Browse files
committed
[SILOptimizer] Added MandatoryCombiner to passes.
The mandatory combiner is added both to the Onone pass and also to the performance pass.
1 parent b0c93bb commit b8062f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ SILPassPipelinePlan::getSILOptPreparePassPipeline(const SILOptions &Options) {
597597
}
598598

599599
P.startPipeline("SILOpt Prepare Passes");
600+
P.addMandatoryCombine();
600601
P.addAccessMarkerElimination();
601602

602603
return P;
@@ -654,6 +655,9 @@ SILPassPipelinePlan
654655
SILPassPipelinePlan::getOnonePassPipeline(const SILOptions &Options) {
655656
SILPassPipelinePlan P(Options);
656657

658+
P.startPipeline("Mandatory Combines");
659+
P.addMandatoryCombine();
660+
657661
// First serialize the SIL if we are asked to.
658662
P.startPipeline("Serialization");
659663
P.addSerializeSILPass();

0 commit comments

Comments
 (0)