Skip to content

Commit 216eec2

Browse files
committed
SIL optimizer: add an additional LICM pass to the pipeline.
The COWOpts optimization relies more on LICM. This additional run of the pass ensures that there is no phase ordering issue between LICM and COWOpts
1 parent 99f4d85 commit 216eec2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ static void addMidLevelFunctionPipeline(SILPassPipelinePlan &P) {
515515
P.addLICM();
516516
// Run loop unrolling after inlining and constant propagation, because loop
517517
// trip counts may have became constant.
518+
P.addLICM();
518519
P.addLoopUnroll();
519520
}
520521

0 commit comments

Comments
 (0)