Commit 6231602
authored
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.1 parent fc5bb02 commit 6231602
1 file changed
+1
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 120 | | |
125 | 121 | | |
126 | 122 | | |
| |||
135 | 131 | | |
136 | 132 | | |
137 | 133 | | |
138 | | - | |
139 | 134 | | |
140 | 135 | | |
141 | 136 | | |
| |||
324 | 319 | | |
325 | 320 | | |
326 | 321 | | |
327 | | - | |
| 322 | + | |
328 | 323 | | |
329 | 324 | | |
330 | 325 | | |
| |||
383 | 378 | | |
384 | 379 | | |
385 | 380 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | 381 | | |
399 | 382 | | |
400 | 383 | | |
| |||
0 commit comments