Fix IR generation of for
loop containing break/continue #345
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#345
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix/loop-break-continue"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix cases where the body BB would have two terminators because of a preceding continue/break statement already emitting a terminator.
Discovered when running
artiq_sinara_tester
; Regression test is added asloop_cont_break.py
.@ -0,0 +5,4 @@
def run() -> int32:
for i in range(4):
output_int32(i)
if i < 2:
Indentation
4169d41bee
to5b05f82285
v2, v3: Replaced tab-indentation with 4-spaces.
5b05f82285
to1c3ee584ed