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

[Attributor] Only manifest pointer operand for StoreInst in AAAddressSpace #65708

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

shiltian
Copy link
Contributor

@shiltian shiltian commented Sep 8, 2023

AAAddressSpace currently only works for LoadInst and StoreInst currently. For StoreInst, the corresponding use can be the pointer operand, or value operand, or both. When it is used as value operand, it can prevent AMDGPUPromoteAlloca from optimization in certain cases. This patch changes the manifest method such that only pointer operand will be rewritten.

@shiltian shiltian requested a review from a team as a code owner September 8, 2023 03:37
Copy link
Member

@jdoerfert jdoerfert left a comment

Choose a reason for hiding this comment

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

Please write in the commit message why this is necessary. It should not be, you are dropping information. Also, open a bug against the AMDGPU pass.

@shiltian shiltian changed the title [Attributor] Only manifest pointer operand for StoreInst in AAAddressSpace [Attributor] Only manifest pointer operand for StoreInst in AAAddressSpace Sep 8, 2023
@shiltian shiltian merged commit a501d06 into llvm:main Sep 8, 2023
2 checks passed
@shiltian shiltian deleted the pointer-operand-only branch September 8, 2023 19:24
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.

None yet

2 participants