Skip to content

Commit bd9431d

Browse files
gbaraldiKristofferC
authored andcommitted
[backports-1.10] Add passes to -O1 pipeline to reduce allocations in reinterpret (#57731)
1 parent 04c8df2 commit bd9431d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.10.8
1+
1.10.9

src/pipeline.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,13 @@ static void buildScalarOptimizerPipeline(FunctionPassManager &FPM, PassBuilder *
458458
FPM.addPass(IRCEPass());
459459
FPM.addPass(InstCombinePass());
460460
FPM.addPass(JumpThreadingPass());
461+
} else if (O.getSpeedupLevel() >= 1) {
462+
JULIA_PASS(FPM.addPass(AllocOptPass()));
463+
FPM.addPass(SROAPass());
464+
FPM.addPass(MemCpyOptPass());
465+
FPM.addPass(SCCPPass());
466+
FPM.addPass(InstCombinePass());
467+
FPM.addPass(ADCEPass());
461468
}
462469
if (O.getSpeedupLevel() >= 3) {
463470
FPM.addPass(GVNPass());

0 commit comments

Comments
 (0)