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

sroa: Fix affinity of inserted undef check #52864

Merged
merged 1 commit into from
Jan 13, 2024
Merged

sroa: Fix affinity of inserted undef check #52864

merged 1 commit into from
Jan 13, 2024

Conversation

Keno
Copy link
Member

@Keno Keno commented Jan 12, 2024

There is a bit of complexity here making sure that this instruction ends up in the correct basic block because there's a fair number of corner cases (e.g. whether we're deleting the first instruction of a basic block or the last or both). Side-step all that by never doing the delete-then-insert dance and instead doing regular instruction replacement if necessary. Fixes #52857.

@Keno
Copy link
Member Author

Keno commented Jan 12, 2024

(N.B.: Base branch is currently #52863 to avoid the merge conflict, so that one should be merged first).

@vtjnash vtjnash requested a review from topolarity January 12, 2024 01:21
Base automatically changed from kf/52858 to master January 12, 2024 14:18
There is a bit of complexity here making sure that this instruction
ends up in the correct basic block because there's a fair number
of corner cases (e.g. whether we're deleting the first instruction
of a basic block or the last or both). Side-step all that by
never doing the delete-then-insert dance and instead doing regular
instruction replacement if necessary. Fixes #52857.
@Keno Keno merged commit f14bf29 into master Jan 13, 2024
5 of 7 checks passed
@Keno Keno deleted the kf/52857 branch January 13, 2024 01:57
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.

IR verification error during testing of Parsers.jl
1 participant