From ff8869abe2d488edc920f06a533ff0f35aaac7d9 Mon Sep 17 00:00:00 2001 From: Juni May Date: Tue, 20 Aug 2024 13:47:11 +0800 Subject: [PATCH] chore: disable ir aggressive --- src/bin/compiler.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bin/compiler.rs b/src/bin/compiler.rs index ae6e628..2e06aca 100644 --- a/src/bin/compiler.rs +++ b/src/bin/compiler.rs @@ -383,7 +383,7 @@ fn main() -> Result<(), Box> { 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::(&mut lower_ctx, &cmd.lower_cfg); schedule(lower_ctx.mctx_mut(), &cmd.lower_cfg, Some(128)); @@ -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,