Skip to content

Commit

Permalink
Update compiler/noirc_evaluator/src/ssa/opt/unrolling.rs
Browse files Browse the repository at this point in the history
vezenovm authored Jan 31, 2025
1 parent a739ae0 commit b0b0cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_evaluator/src/ssa/opt/unrolling.rs
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ impl Ssa {

// Take a snapshot in case we have to restore it.
let orig_function =
(max_bytecode_increase_percent == i32::MAX && is_brillig).then(|| function.clone());
(max_bytecode_increase_percent < i32::MAX && is_brillig).then(|| function.clone());

// We must be able to unroll ACIR loops at this point, so exit on failure to unroll.
let has_unrolled = function.unroll_loops_iteratively()?;

0 comments on commit b0b0cca

Please sign in to comment.