Skip to content

Conversation

GarboMuffin
Copy link
Member

@GarboMuffin GarboMuffin commented Oct 12, 2025

The iteration count is only evaluated at the start of the loop, so it doesn't need to account for the substack changing variable state or yielding.

Fixes #306

@GarboMuffin GarboMuffin marked this pull request as draft October 12, 2025 16:13
@GarboMuffin GarboMuffin marked this pull request as ready for review October 12, 2025 16:16
@GarboMuffin GarboMuffin changed the title Only analyze repeat block inputs at the start of the loop Improve repeat block analysis Oct 12, 2025
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.

Optimizer doesn't know that repeat block iteration count is only evaluated at the start of the loop

1 participant