We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71eebaa commit e0c4fa2Copy full SHA for e0c4fa2
lib/SILOptimizer/PassManager/PassPipeline.cpp
@@ -453,6 +453,9 @@ static bool addMidLevelPassPipeline(SILPassPipelinePlan &P) {
453
// for CapturePropagation.
454
P.addDeadArgSignatureOpt();
455
456
+ // A LICM pass at mid-level is mainly needed to hoist addressors of globals.
457
+ // It needs to be before global_init functions are inlined.
458
+ P.addLICM();
459
// Run loop unrolling after inlining and constant propagation, because loop
460
// trip counts may have became constant.
461
P.addLoopUnroll();
0 commit comments