Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Remove RC tracking in mem2reg (#6019)
# Description ## Problem\* Resolves <!-- Link to GitHub Issue --> #5935 added logic to remove trivial stores, however, it also had to track whether the alst instruction was an `inc_rc` or `dec_rc` instruction. After AztecProtocol/aztec-packages#8448 we can remove that logic. ## Summary\* Removes `inside_rc_reload` from mem2reg, its tracking method, and its ussage. Before AztecProtocol/aztec-packages#8448 we were creating extra trivial stores. The majority of the code size benefit comes from that PR avoiding the creation of those stores in the first place. This PR is truly simply a clean-up that removes unnecessary logic. I do not foresee large bytecode size increases from this removal as the majority of the benefit came in the new array layout. ## Additional Context ## Documentation\* Check one: - [X] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** 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.
- Loading branch information