-
Notifications
You must be signed in to change notification settings - Fork 381
chore: don't optimize ArrayGet from previous ArraySet #11586
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
b9b6483
chore: don't optimize ArrayGet from previous ArraySet
asterite 6441fa1
clippy
asterite c1c06da
Run a separate ArrayGet optimization as an early pass
asterite 9810fea
Also do the optimization one step for ValueMerger
asterite fba1d9e
Recover some lost optimizations
asterite 3cf0271
Run again after preprocessing functions
asterite 114fd21
One more after mem2reg
asterite 26d937e
Run after every mem2reg
asterite c8cbe56
Fix tests
asterite 07e93c9
Reuse
asterite 6155470
Doc comments
asterite 54ea4d2
More docs
asterite abc1e6a
Fixes
asterite c2f089d
Another fix
asterite 86e92dc
Reduce visibility of method
asterite 462751a
Remove the ValueMerger mode
asterite e405e80
Snapshots
asterite f119c9e
Remove extra test
asterite 1391771
No need for a mode, just take `Option`
asterite 83dc45d
Rename
asterite 3bedfaf
Fix typo
asterite adbc3da
Comment
asterite ff01c65
See what happens if we don't optimize in ValueMerger
asterite 0acc2d1
Revert "See what happens if we don't optimize in ValueMerger"
asterite 06ddd1d
Apply suggestions from code review
asterite e661f7b
Don't optimize get from param if we end up with the same array
asterite ae6ca10
Set side effects var to one when entering block
asterite 6028306
Check that we didn't optimize to get from the same array
asterite 9a5dd41
Assume that we know the predicate of every array_set before an array_get
asterite File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.