-
Notifications
You must be signed in to change notification settings - Fork 263
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
Optimize compilation of functional-looking assignment RHSs #5589
Merged
RustanLeino
merged 34 commits into
dafny-lang:master
from
RustanLeino:optimize-functional-assignment-rhs
Jul 10, 2024
Merged
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
bab7cf5
Parameterize TrOptExpr in its continuation
RustanLeino cf34d7e
Use TrExprOpt for simple assignment statements
RustanLeino 93f5ccf
Add release notes
RustanLeino 013f6d2
Add tests
RustanLeino 0e27fa6
fix: Thread inLetExprBody through EmitNestedMatchGeneric
RustanLeino 8c85e32
Use last case unconditionally
RustanLeino ac36a0c
Remove “unmatched” mechanism
RustanLeino 97ac904
Always emit exception-throw for zero-case match
RustanLeino 0f4d7d9
chore: Improve code
RustanLeino 15afb89
Emit no tests for last case
RustanLeino df493ff
Introduce OptimizedExpressionContinuation record type
RustanLeino 434e3fb
Prevent case fall-through by using break/goto
RustanLeino 5502bff
fix: Use Downcast for let RHS and for function body
RustanLeino d89fb6b
Add tests
RustanLeino e02d322
Handle only non-degenerate matches differently for Java
RustanLeino ab826e3
fix: Add a missing case in C# type conversions
RustanLeino fa1bb32
Updated code generated from Dafny
RustanLeino 8e392d9
chore: Code improvements
RustanLeino 69bf890
fix: Revert the added downcast for exprs being returned
RustanLeino 64c7840
Improve and unify code
RustanLeino 64ba677
chore: Improve code
RustanLeino 498ed9c
fix: Always wrap a block around each case
RustanLeino 065b415
fix: Rename override-member type parameters
RustanLeino 7da8a60
refactor: Extract method TrTailCall
RustanLeino a6a08e0
fix: Pass “inLetExprBody” through
RustanLeino 7742cd8
Add comment to test file
RustanLeino 9b2ca24
Merge branch 'master' into optimize-functional-assignment-rhs
RustanLeino 89d062a
Merge branch 'master' into optimize-functional-assignment-rhs
RustanLeino f7763ab
Regenerate Dafny code
RustanLeino 12361cc
Merge branch 'master' into optimize-functional-assignment-rhs
RustanLeino df1adf5
Update ignore file
RustanLeino 6e15f06
Regenerate Dafny
RustanLeino 5b28ba8
Merge branch 'master' into optimize-functional-assignment-rhs
RustanLeino 9b46ec4
chore: Remove dead code leftover from merge
RustanLeino 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 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 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 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 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 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 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:-P