-
Notifications
You must be signed in to change notification settings - Fork 187
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(perf): Allow array set last uses optimization in return block of Brillig functions #6119
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Changes to Brillig bytecode sizes
🧾 Summary (10% most significant diffs)
Full diff report 👇
|
jfecher
approved these changes
Sep 20, 2024
AztecBot
added a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Sep 21, 2024
…urn block of Brillig functions (noir-lang/noir#6119) feat: represent assertions more similarly to function calls (noir-lang/noir#6103) feat: pretty print Quoted token stream (noir-lang/noir#6111) feat: LSP autocompletion for `TypePath` (noir-lang/noir#6117) fix: disambiguate field or int static trait method call (noir-lang/noir#6112) chore: delete duplicated test (noir-lang/noir#6113) feat: (LSP) suggest $vars inside `quote { ... }` (noir-lang/noir#6114) chore: ec addition for non-zero points (noir-lang/noir#5858) chore(docs): removing old versions (noir-lang/noir#6075) fix(mem2reg): Remove possibility of underflow (noir-lang/noir#6107) fix: decode databus return values (noir-lang/noir#6095)
AztecBot
added a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Sep 21, 2024
… Brillig functions (noir-lang/noir#6119) feat: represent assertions more similarly to function calls (noir-lang/noir#6103) feat: pretty print Quoted token stream (noir-lang/noir#6111) feat: LSP autocompletion for `TypePath` (noir-lang/noir#6117) fix: disambiguate field or int static trait method call (noir-lang/noir#6112) chore: delete duplicated test (noir-lang/noir#6113) feat: (LSP) suggest $vars inside `quote { ... }` (noir-lang/noir#6114) chore: ec addition for non-zero points (noir-lang/noir#5858) chore(docs): removing old versions (noir-lang/noir#6075) fix(mem2reg): Remove possibility of underflow (noir-lang/noir#6107) fix: decode databus return values (noir-lang/noir#6095)
AztecBot
added a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Sep 22, 2024
…urn block of Brillig functions (noir-lang/noir#6119) feat: represent assertions more similarly to function calls (noir-lang/noir#6103) feat: pretty print Quoted token stream (noir-lang/noir#6111) feat: LSP autocompletion for `TypePath` (noir-lang/noir#6117) fix: disambiguate field or int static trait method call (noir-lang/noir#6112) chore: delete duplicated test (noir-lang/noir#6113) feat: (LSP) suggest $vars inside `quote { ... }` (noir-lang/noir#6114) chore: ec addition for non-zero points (noir-lang/noir#5858) chore(docs): removing old versions (noir-lang/noir#6075) fix(mem2reg): Remove possibility of underflow (noir-lang/noir#6107) fix: decode databus return values (noir-lang/noir#6095)
AztecBot
added a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Sep 22, 2024
… Brillig functions (noir-lang/noir#6119) feat: represent assertions more similarly to function calls (noir-lang/noir#6103) feat: pretty print Quoted token stream (noir-lang/noir#6111) feat: LSP autocompletion for `TypePath` (noir-lang/noir#6117) fix: disambiguate field or int static trait method call (noir-lang/noir#6112) chore: delete duplicated test (noir-lang/noir#6113) feat: (LSP) suggest $vars inside `quote { ... }` (noir-lang/noir#6114) chore: ec addition for non-zero points (noir-lang/noir#5858) chore(docs): removing old versions (noir-lang/noir#6075) fix(mem2reg): Remove possibility of underflow (noir-lang/noir#6107) fix: decode databus return values (noir-lang/noir#6095)
AztecBot
added a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Sep 23, 2024
…urn block of Brillig functions (noir-lang/noir#6119) feat: represent assertions more similarly to function calls (noir-lang/noir#6103) feat: pretty print Quoted token stream (noir-lang/noir#6111) feat: LSP autocompletion for `TypePath` (noir-lang/noir#6117) fix: disambiguate field or int static trait method call (noir-lang/noir#6112) chore: delete duplicated test (noir-lang/noir#6113) feat: (LSP) suggest $vars inside `quote { ... }` (noir-lang/noir#6114) chore: ec addition for non-zero points (noir-lang/noir#5858) chore(docs): removing old versions (noir-lang/noir#6075) fix(mem2reg): Remove possibility of underflow (noir-lang/noir#6107) fix: decode databus return values (noir-lang/noir#6095)
AztecBot
added a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Sep 23, 2024
… Brillig functions (noir-lang/noir#6119) feat: represent assertions more similarly to function calls (noir-lang/noir#6103) feat: pretty print Quoted token stream (noir-lang/noir#6111) feat: LSP autocompletion for `TypePath` (noir-lang/noir#6117) fix: disambiguate field or int static trait method call (noir-lang/noir#6112) chore: delete duplicated test (noir-lang/noir#6113) feat: (LSP) suggest $vars inside `quote { ... }` (noir-lang/noir#6114) chore: ec addition for non-zero points (noir-lang/noir#5858) chore(docs): removing old versions (noir-lang/noir#6075) fix(mem2reg): Remove possibility of underflow (noir-lang/noir#6107) fix: decode databus return values (noir-lang/noir#6095)
sirasistant
added a commit
to AztecProtocol/aztec-packages
that referenced
this pull request
Sep 23, 2024
Automated pull of development from the [noir](https://github.com/noir-lang/noir) programming language, a dependency of Aztec. BEGIN_COMMIT_OVERRIDE feat(perf): Allow array set last uses optimization in return block of Brillig functions (noir-lang/noir#6119) feat: represent assertions more similarly to function calls (noir-lang/noir#6103) feat: pretty print Quoted token stream (noir-lang/noir#6111) feat: LSP autocompletion for `TypePath` (noir-lang/noir#6117) fix: disambiguate field or int static trait method call (noir-lang/noir#6112) chore: delete duplicated test (noir-lang/noir#6113) feat: (LSP) suggest $vars inside `quote { ... }` (noir-lang/noir#6114) chore: ec addition for non-zero points (noir-lang/noir#5858) chore(docs): removing old versions (noir-lang/noir#6075) fix(mem2reg): Remove possibility of underflow (noir-lang/noir#6107) fix: decode databus return values (noir-lang/noir#6095) END_COMMIT_OVERRIDE --------- Co-authored-by: TomAFrench <tom@tomfren.ch> Co-authored-by: sirasistant <sirasistant@gmail.com>
AztecBot
added a commit
to AztecProtocol/barretenberg
that referenced
this pull request
Sep 24, 2024
Automated pull of development from the [noir](https://github.com/noir-lang/noir) programming language, a dependency of Aztec. BEGIN_COMMIT_OVERRIDE feat(perf): Allow array set last uses optimization in return block of Brillig functions (noir-lang/noir#6119) feat: represent assertions more similarly to function calls (noir-lang/noir#6103) feat: pretty print Quoted token stream (noir-lang/noir#6111) feat: LSP autocompletion for `TypePath` (noir-lang/noir#6117) fix: disambiguate field or int static trait method call (noir-lang/noir#6112) chore: delete duplicated test (noir-lang/noir#6113) feat: (LSP) suggest $vars inside `quote { ... }` (noir-lang/noir#6114) chore: ec addition for non-zero points (noir-lang/noir#5858) chore(docs): removing old versions (noir-lang/noir#6075) fix(mem2reg): Remove possibility of underflow (noir-lang/noir#6107) fix: decode databus return values (noir-lang/noir#6095) END_COMMIT_OVERRIDE --------- Co-authored-by: TomAFrench <tom@tomfren.ch> Co-authored-by: sirasistant <sirasistant@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Problem*
Resolves
Part of general effort to reduce Brillig bytecode sizes.
Summary*
We currently only perform the array set last uses optimization on ACIR functions. This makes sense as the pass only looks at last uses in a single block. We can start to expand the last uses opt to encompass more than just ACIR functions and make it aware of the last array set of an array across blocks. This is a bit more complex though so this PR currently just attempts to look at the return block of Brillig functions and see the effects.
Additional Context
Documentation*
Check one:
PR Checklist*
cargo fmt
on default settings.