Skip to content

SIL: fix memory behavior of bind_memory and rebind_memory #67330

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 1 commit into from
Jul 18, 2023

Conversation

eeckstein
Copy link
Contributor

Since dead-store-elimination is now more accurate, it's important that the bind_memory instructions are also defined to read memory. Otherwise they are not considered as barriers for dead-store-elimination.

Fixes a miscompile.

rdar://112150142

Since dead-store-elimination is now more accurate, it's important that the `bind_memory` instructions are also defined to _read_ memory.
Otherwise they are not considered as barriers for dead-store-elimination.

Fixes a miscompile.

rdar://112150142
@eeckstein eeckstein requested a review from atrick July 17, 2023 12:39
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein
Copy link
Contributor Author

@swift-ci benchmark

@eeckstein eeckstein merged commit 9dcafc8 into swiftlang:main Jul 18, 2023
@eeckstein eeckstein deleted the fix-bind-memory-instructions branch July 18, 2023 05:31
Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks!

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.

2 participants