Skip to content

[Mem2Reg] Omit lexical moves for lexical values. #65022

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 3 commits into from
Apr 11, 2023

Conversation

nate-chandler
Copy link
Contributor

When promoting an alloc_stack [lexical] that is "owned" (i.e. not a store_borrow location), omit lexical lifetimes (represented with move_value [lexical] instructions) if the value being stored is already lexical. Such moves are redundant.

rdar://99160718

Just directly invoke the member function instead.
When promoting an `alloc_stack [lexical]` that is "owned" (i.e. not a
store_borrow location), omit lexical lifetimes (represented with
`move_value [lexical]` instructions) if the value being stored is
already lexical.  Such moves are redundant.

rdar://99160718
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

@swift-ci please benchmark

@nate-chandler
Copy link
Contributor Author

@swift-ci Please Test Source Compatibility Release

@nate-chandler
Copy link
Contributor Author

@swift-ci please test macos platform

1 similar comment
@nate-chandler
Copy link
Contributor Author

@swift-ci please test macos platform

@nate-chandler nate-chandler merged commit 252cc1e into swiftlang:main Apr 11, 2023
@nate-chandler nate-chandler deleted the rdar99160718 branch April 11, 2023 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant