Skip to content

Lower for-loops over ranges to counting loops in IR#33

Merged
meetzli merged 1 commit intomainfrom
refacotr_s1
Sep 9, 2025
Merged

Lower for-loops over ranges to counting loops in IR#33
meetzli merged 1 commit intomainfrom
refacotr_s1

Conversation

@meetzli
Copy link
Member

@meetzli meetzli commented Sep 9, 2025

Optimize lowering of for-loops with range iterators by generating counting loops instead of using the iterator protocol. Retain the iterator protocol for non-range iterators. Also fix conditional branching to avoid overwriting terminators after returns. Add UTF-8 console initialization for Windows in C backend.

Optimize lowering of for-loops with range iterators by generating
counting loops instead of using the iterator protocol. Retain the
iterator protocol for non-range iterators. Also fix conditional
branching to avoid overwriting terminators after returns. Add UTF-8
console initialization for Windows in C backend.
@meetzli meetzli added this pull request to the merge queue Sep 9, 2025
Merged via the queue into main with commit 45e992e Sep 9, 2025
12 checks passed
@meetzli meetzli deleted the refacotr_s1 branch September 9, 2025 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant