Skip to content

Commit

Permalink
additional debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hoffman committed Jul 30, 2024
1 parent d7acfd1 commit c59a274
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion circuit_passes/src/passes/loop_unroll/observer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,12 @@ impl LoopUnrollObserver<'_> {
}
match cond {
// If the conditional becomes unknown just give up.
None => return Ok(None),
None => {
if DEBUG_LOOP_UNROLL {
println!("[UNROLL][try_unroll_loop] OUTCOME: not safe to move or unroll, condition unknown");
}
return Ok(None);
}
// When conditional becomes `false`, iteration count is complete.
Some(false) => break,
// Otherwise, continue counting.
Expand Down

0 comments on commit c59a274

Please sign in to comment.