Skip to content

Commit 8007c7c

Browse files
d-nettogbaraldi
andauthored
Make reinterpret not allocate in some cases (#224)
Co-authored-by: Gabriel Baraldi <[email protected]>
1 parent f99b3b5 commit 8007c7c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pipeline.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,13 @@ static void buildScalarOptimizerPipeline(FunctionPassManager &FPM, PassBuilder *
459459
FPM.addPass(IRCEPass());
460460
FPM.addPass(InstCombinePass());
461461
FPM.addPass(JumpThreadingPass());
462+
} else if (O.getSpeedupLevel() >= 1) {
463+
JULIA_PASS(FPM.addPass(AllocOptPass()));
464+
FPM.addPass(SROAPass());
465+
FPM.addPass(MemCpyOptPass());
466+
FPM.addPass(SCCPPass());
467+
FPM.addPass(InstCombinePass());
468+
FPM.addPass(ADCEPass());
462469
}
463470
if (O.getSpeedupLevel() >= 3) {
464471
FPM.addPass(GVNPass());

0 commit comments

Comments
 (0)