Skip to content

AMDGPU: Fix mishandling of search for constantexpr addrspacecasts #120346

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

arsenm
Copy link
Contributor

@arsenm arsenm commented Dec 18, 2024

This was assuming that the top level constant expression was an
addrspacecast. The first encountered expression may not be pointer typed,
and may not be the addrspacecast. We need to distinguish the types of
addrspacecasts unlike the previous queue ptr search, so do that.

Fixes #120256

This was assuming that the top level constant expression was an
addrspacecast. The first encountered expression may not be pointer typed,
and may not be the addrspacecast. We need to distinguish the types of
addrspacecasts unlike the previous queue ptr search, so do that.

Fixes #120256
Copy link
Contributor Author

arsenm commented Dec 18, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

@arsenm arsenm marked this pull request as ready for review December 18, 2024 02:14
@@ -234,12 +241,18 @@ class AMDGPUInformationCache : public InformationCache {

private:
/// Check if the ConstantExpr \p CE requires the queue pointer.
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment on what the function does needs to be updated.

Copy link
Contributor

@jwanggit86 jwanggit86 left a comment

Choose a reason for hiding this comment

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

LGTM.

@arsenm arsenm merged commit 4420167 into main Dec 20, 2024
8 checks passed
@arsenm arsenm deleted the users/arsenm/issue120256/fix-handling-of-constexpr-addrspacecasts branch December 20, 2024 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing assertion in AMDGPUAttributor with ptrtoint casts and AS 3
2 participants