Skip to content

[WIP][Attributor][AMDGPU] Improve the handling of indirect calls #100954

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

Conversation

shiltian
Copy link
Contributor

No description provided.

Copy link
Contributor Author

shiltian commented Jul 28, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

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

Join @shiltian and the rest of your teammates on Graphite Graphite

@ssahasra
Copy link
Collaborator

The apparent change here is to simply reverse the effect of #100952 on the lit test. Would be good to have a test which shows what the improvement is.

Also, I think #100952 merely enables AAIndirectCallInfo, and feels like an integral part of this change itself. I would lean towards squashing it into this change.

@shiltian
Copy link
Contributor Author

The apparent change here is to simply reverse the effect of #100952 on the lit test. Would be good to have a test which shows what the improvement is.

Yes, this patch is still WIP (draft).

Also, I think #100952 merely enables AAIndirectCallInfo, and feels like an integral part of this change itself. I would lean towards squashing it into this change.

#100953 is based on #100952 because I'd like to demonstrate how the change of function signature will work.

shiltian added 3 commits July 29, 2024 14:20
…imizer pipeline extension point

These callbacks can be invoked in multiple places when building an optimization
pipeline, both in compile time and link time. However, there is no indicator on
what pipeline it is currently building.

In this patch, an extra argument is added to indicate its (Thin)LTO stage such
that the callback can check it if needed. There is no test expected from this,
and the benefit of this change will be demonstrated in #66488.
@shiltian shiltian force-pushed the users/shiltian/extend-callback-signature branch from 9c94910 to ed46483 Compare July 29, 2024 18:25
@shiltian shiltian force-pushed the users/shiltian/improve-indirect-call-handling branch from 26e3c81 to 0e498ef Compare July 29, 2024 18:25
@shiltian shiltian changed the title [Attributor][AMDGPU] Improve the handling of indirect calls [WIP][Attributor][AMDGPU] Improve the handling of indirect calls Jul 29, 2024
@shiltian shiltian force-pushed the users/shiltian/extend-callback-signature branch from ed46483 to 9980c1f Compare July 30, 2024 18:45
@shiltian shiltian closed this Jul 30, 2024
@shiltian shiltian deleted the users/shiltian/improve-indirect-call-handling branch July 30, 2024 19:05
@shiltian
Copy link
Contributor Author

Moved most of the code to #100952 so this one is no longer needed. Will open a new PR if anything we need to do after the two patches are landed.

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.

2 participants