Skip to content

Commit f67e288

Browse files
committed
current_block_control_dependent always true for acir
1 parent 73e84eb commit f67e288

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/noirc_evaluator/src/ssa/opt/loop_invariant.rs

+2
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ impl<'f> LoopInvariantContext<'f> {
158158
// avoid greater compilation cost.
159159
if self.inserter.function.runtime().is_brillig() {
160160
self.is_control_dependent_post_pre_header(loop_, *block);
161+
} else {
162+
self.current_block_control_dependent = true;
161163
}
162164

163165
for instruction_id in self.inserter.function.dfg[*block].take_instructions() {

0 commit comments

Comments
 (0)