-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[5.6] Copy-propagation enables lexical-lifetimes. #40517
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
nate-chandler
merged 44 commits into
swiftlang:release/5.6
from
nate-chandler:cherrypick/lexical-lifetimes/enable-with-copy-propagation/release/5.6
Dec 21, 2021
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
fc2701c
[Test] Add two lexical lifetime verification tests.
nate-chandler 806c6db
[CopyPropagation] Note ShrinkBorrowScope changes.
nate-chandler 10681eb
[Gardening] Merged two conditions.
nate-chandler 180e04c
[Gardening] Updated comment.
nate-chandler 9499b09
[OwnershipUtils] Extracted utility for common use.
nate-chandler 878e034
[CanonicalizeInst] Remove redundant lexical bbis.
nate-chandler 8fa8262
[LoopRotate] Don't phi forwarded guaranteed value.
nate-chandler 4fb8eed
Enabling copy propagation enables lexical lifetimes.
nate-chandler 2513c91
[SIL] Reenable destroy hoisting under lexical lifetimes.
nate-chandler 321fecd
[AllocStackHoisting] New dealloc_stack's locs are cleanups.
nate-chandler 790bcd9
Fix OperandOwnership for AutoDiff builtins.
atrick 7235aef
SemanticARCOpts fix - remove deadEndBlocks checks
atrick aa3d068
[NFC] Renamed LexicalLifetimesOption cases.
nate-chandler f4845c8
Disable lexical-lifetimes with copy-propagation.
nate-chandler ebb5d9c
Test case for SemanticARCOpts fix - remove deadEndBlocks checks
atrick 64c60b4
Workaround OSSA dead borrow scope bugs.
atrick 177f73a
Fixed flag checking for lexical borrow scopes.
nate-chandler 1147f7f
[SILOpt] Tweaked error message.
nate-chandler 0c1b56a
Error on bad copy propagation flag combo.
nate-chandler f67df31
[NFC] Used SILOption field for copy propagation.
nate-chandler 019a75d
[NFC] [SILOpt] Explicitly specified flag defaults.
nate-chandler dab3f61
Base LexicalLifetimes dflt on SILOpts::CopyProp.
nate-chandler f3774f8
Replaced -disable-copy-prop with multi-var.
nate-chandler d92a4bc
[Test] Specified copy-prop and lex-lt behavior.
nate-chandler d1a7574
[SILOpt] Make lex-lt options optional.
nate-chandler 42078f1
[Gardening] Added omitted word.
nate-chandler 0fd48fc
[CopyPropagation] Cleanup after borrow shrinking.
nate-chandler 78a2eeb
[ShrinkBorrowScope] Hoist over copies of borrow.
nate-chandler 704133c
[OwnershipUtils] Repurpose utility.
nate-chandler 834558e
[Gardening] Improved variable name.
nate-chandler ab0be3a
[ShrinkBorrowScope] Return modified copy_values.
nate-chandler e3b4a7b
[NFC] Demoted variable to function scope.
nate-chandler 7d16503
[Gardening] Doc'd field.
nate-chandler 4a6f85c
[Gardening] Improved variable name.
nate-chandler 12e2663
[Gardening] Improved variable name.
nate-chandler 21069bb
[ShrinkBorrowScope] Avoid spurious mutation.
nate-chandler 067efb1
[Test] Stopped passing wrong flag.
nate-chandler d9e7cf6
[Test] Added swift test for ShrinkBorrowScope.
nate-chandler 4508571
[Test] Added more end_borrow hoisting tests.
nate-chandler 880f15d
[Test] Adapted tests to CopyPropagation changes.
nate-chandler 707e78e
[Gardening] Doc'd field.
nate-chandler 027fac7
[ShrinkBorrowScope] Enable querying hoistability.
nate-chandler 284559f
[ShrinkBorrowScope] Checked before adding preds.
nate-chandler e352d64
[SILOptimizer] Add flag to print pre-OSSA lowering.
nate-chandler 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
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
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.
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.