Skip to content

Commit

Permalink
chore: disable ir aggressive
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniMay committed Aug 20, 2024
1 parent 0aedc59 commit ff8869a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bin/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
lower_ctx.lower();

if cmd.opt > 0 {
riscv64::run_peephole(lower_ctx.mctx_mut(), &cmd.lower_cfg, cmd.aggressive);
riscv64::run_peephole(lower_ctx.mctx_mut(), &cmd.lower_cfg, true);
SimplifyCfg::run(lower_ctx.mctx_mut(), &cmd.lower_cfg);
RegisterCoalescing::run::<RvLowerSpec>(&mut lower_ctx, &cmd.lower_cfg);
schedule(lower_ctx.mctx_mut(), &cmd.lower_cfg, Some(128));
Expand Down Expand Up @@ -561,8 +561,7 @@ fn parse_args(passman: &mut PassManager) -> CliCommand {
combine_stack_adjustments,
};

// let aggressive = matches.get_count("aggressive") > 0;
let aggressive = true;
let aggressive = matches.get_count("aggressive") > 0;

CliCommand {
output,
Expand Down

0 comments on commit ff8869a

Please sign in to comment.