Skip to content

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