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

release/19.x: [CodeGen] Clear InitUndef pass new register cache between pass runs (#90967) #110603

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

topperc
Copy link
Collaborator

@topperc topperc commented Oct 1, 2024

PR for backport #110601 which needed an additional test update to cherry-pick.

Original message:

Multiple invocations of the pass could interfere with eachother, preventing some undefs being initialised.

I found it very difficult to create a unit test for this due to it being dependent on particular allocations of a previous function. However, the bug can be observed here: https://godbolt.org/z/7xnMo41Gv with the creation of the illegal instruction vnsrl.wi v9, v8, 0

@topperc topperc added this to the LLVM 19.X Release milestone Oct 1, 2024
@topperc topperc requested review from nikic, preames and BeMg October 1, 2024 00:07
Copy link

github-actions bot commented Oct 1, 2024

⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo.
Please turn off Keep my email addresses private setting in your account.
See LLVM Discourse for more information.

Copy link
Contributor

@nikic nikic left a comment

Choose a reason for hiding this comment

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

LGTM

…lvm#90967)

Multiple invocations of the pass could interfere with eachother,
preventing some undefs being initialised.

I found it very difficult to create a unit test for this due to it being
dependent on particular allocations of a previous function. However, the
bug can be observed here: https://godbolt.org/z/7xnMo41Gv with the
creation of the illegal instruction `vnsrl.wi v9, v8, 0`
@tru tru merged commit 1f681b5 into llvm:release/19.x Oct 1, 2024
8 of 10 checks passed
Copy link

github-actions bot commented Oct 1, 2024

@topperc (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants