Skip to content

[InstSimplify] simplifyPHINode phi fold incorrect according to alive2 #115250

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

Closed
akshayrdeodhar opened this issue Nov 7, 2024 · 2 comments
Closed

Comments

@akshayrdeodhar
Copy link
Contributor

akshayrdeodhar commented Nov 7, 2024

When a phi has undef as one of the incoming values, and an SSA value as the other, and the SSA value dominates the phi, replacing the phi with the SSA value is incorrect according to alive2.

Is this an actual bug?

https://alive2.llvm.org/ce/z/7RNy3W

@akshayrdeodhar
Copy link
Contributor Author

CC: @manasij7479

@akshayrdeodhar akshayrdeodhar changed the title [InstSimplify] simplifyPHINode phi fold incorrect according to alive [InstSimplify] simplifyPHINode phi fold incorrect according to alive2 Nov 7, 2024
@dtcxzyw dtcxzyw added the duplicate Resolved as duplicate label Nov 7, 2024
@dtcxzyw
Copy link
Member

dtcxzyw commented Nov 7, 2024

Duplicate of #68683.

@nikic nikic closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants