Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Delay yielding const/loadConst commands #153

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

aborgna-q
Copy link
Collaborator

Only output them immediately before they are consumed by an operation.

This ensures that constant parameters are closer to their consumers on the traversal.

That's specially useful for CircuitChunks, so we can avoid loading a const in one chunk that's only used another one.
(Before this change, the first chunk always had all the LoadConst nodes).

Only output them immediately before they are consumed by an operation.
Copy link
Contributor

@lmondada lmondada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@aborgna-q aborgna-q merged commit d9cc153 into main Oct 2, 2023
7 checks passed
@aborgna-q aborgna-q deleted the feat/delayed-const-commands branch October 2, 2023 15:54
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.

2 participants