This is an archive of the discontinued LLVM Phabricator instance.

[AlwaysInliner] Make legacy pass like the new pass
ClosedPublic

Authored by aeubanks on Mar 20 2023, 11:21 AM.

Details

Summary

The legacy pass is only used in AMDGPU codegen, which doesn't care about running it in call graph order (it actually has to work around that fact).

Make the legacy pass a module pass and share code with the new pass.

This allows us to remove the legacy inliner infrastructure.

Diff Detail

Event Timeline

aeubanks created this revision.Mar 20 2023, 11:21 AM
aeubanks requested review of this revision.Mar 20 2023, 11:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 20 2023, 11:21 AM
mtrofin accepted this revision.Mar 20 2023, 1:39 PM
mtrofin added a reviewer: kazu.

neat! lgtm

This revision is now accepted and ready to land.Mar 20 2023, 1:39 PM
This revision was landed with ongoing or failed builds.Mar 21 2023, 11:04 AM
This revision was automatically updated to reflect the committed changes.