Skip to content

nightly-2024-03-14: chore: Add `Instruction::DecrementRc` (#4525)

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 14 Mar 02:10
· 1408 commits to master since this release
d8710c4
# Description

## Problem\*

Resolves https://github.com/noir-lang/noir/issues/4522

## Summary\*

Experimenting with this to see how much it improves performance of
unconstrained code using arrays.

## Additional Context

Currently the new dec_rc instruction is only issued for function
parameters when a function is finished - assuming the parameters are not
also returned.

CC @sirasistant for visibility

## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

---------

Co-authored-by: Álvaro Rodríguez <[email protected]>