Skip to content
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

Update SimplifyCFG's replacement of phi with its incoming value #72792

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

meg-gupta
Copy link
Contributor

Previously we replaced phi with its incoming values when all incoming values were the same.
If the phi had itself as incoming value, it wasn't optimized. This PR handles such cases.

@meg-gupta
Copy link
Contributor Author

Based on top of #72780

@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta force-pushed the improvephireplace branch from 6c09304 to 5bfa560 Compare April 3, 2024 17:46
@meg-gupta
Copy link
Contributor Author

@swift-ci test

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

@meg-gupta meg-gupta enabled auto-merge April 3, 2024 23:02
@meg-gupta meg-gupta merged commit 2ef1aa5 into swiftlang:main Apr 3, 2024
4 of 5 checks passed
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.

3 participants