Skip to content

Commit

Permalink
Update test with ssa_logging
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Dec 5, 2024
1 parent 934d4b9 commit 3d02519
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions compiler/noirc_evaluator/src/ssa/opt/hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ mod tests {
errors::RuntimeError,
ssa::{
opt::assert_normalized_ssa_equals, optimize_all, Ssa, SsaBuilder, SsaEvaluatorOptions,
SsaLogging,
},
};

fn run_all_passes(ssa: Ssa) -> Result<Ssa, RuntimeError> {
let builder = SsaBuilder { ssa, print_ssa_passes: false, print_codegen_timings: false };
let options = &SsaEvaluatorOptions {
enable_ssa_logging: false,
ssa_logging: SsaLogging::None,
enable_brillig_logging: false,
force_brillig_output: false,
print_codegen_timings: false,
Expand All @@ -22,6 +22,13 @@ mod tests {
inliner_aggressiveness: 0,
max_bytecode_increase_percent: None,
};

let builder = SsaBuilder {
ssa,
ssa_logging: options.ssa_logging.clone(),
print_codegen_timings: false,
};

optimize_all(builder, options)
}

Expand Down

0 comments on commit 3d02519

Please sign in to comment.