Skip to content

Commit 5af73c3

Browse files
committed
OJ: Enable some MIR passes.
1 parent 737bc69 commit 5af73c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mir/passes/pass_builder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ FPM buildARMv8FunctionPipeline(OptInfo opt_info) {
107107
// fpm.addPass(FusedAddr());
108108
// fpm.addPass(MachineConstantFold());
109109
fpm.addPass(ISel());
110-
// opt_info.peephole_afterIsel ? fpm.addPass(GenericPeephole(Stage::AfterIsel)) : nop;
111-
// opt_info.CFGsimplifyBeforeRa ? fpm.addPass(CFGsimplifyBeforeRA()) : nop;
110+
opt_info.peephole_afterIsel ? fpm.addPass(GenericPeephole(Stage::AfterIsel)) : nop;
111+
opt_info.CFGsimplifyBeforeRa ? fpm.addPass(CFGsimplifyBeforeRA()) : nop;
112112
// opt_info.redundantLoadEli ? fpm.addPass(RedundantLoadEli(opt_info.redundantLoadEli_weight)) : nop;
113113
fpm.addPass(PreRAlegalize());
114114
// opt_info.machineLICM ? fpm.addPass(MachineLICMPass()) : nop;

0 commit comments

Comments
 (0)