Skip to content

SIL: Don't eagerly erase instructions in builder peepholes. #60604

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

Conversation

jckarter
Copy link
Contributor

Even if the operand doesn't currently have any uses after the peephole, the
caller may intend to use the operand for other purposes. If the operand is
really unused in the end, then dead code elimination ought to clean it up.
Fixes rdar://98418860.

@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter jckarter force-pushed the silbuilder-dont-delete-operands-in-peepholes branch from c46bd10 to ab1aa80 Compare August 18, 2022 17:03
@jckarter
Copy link
Contributor Author

@swift-ci Please test

Even if the operand doesn't currently have any uses after the peephole, the
caller may intend to use the operand for other purposes. If the operand is
really unused in the end, then dead code elimination ought to clean it up.
Fixes rdar://98418860.
@jckarter jckarter force-pushed the silbuilder-dont-delete-operands-in-peepholes branch from ab1aa80 to d3f482a Compare August 18, 2022 23:59
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter jckarter merged commit 18b2225 into swiftlang:main Aug 26, 2022
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