[PATCH] D146446: [AlwaysInliner] Make legacy pass like the new pass
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 20 11:21:59 PDT 2023
aeubanks created this revision.
Herald added subscribers: kosarev, jeroen.dobbelaere, ormris, foad, wenlei, kerbowa, hiraditya, tpr, jvesely, arsenm.
Herald added a reviewer: ctetreau.
Herald added a reviewer: ctetreau.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D146446
Files:
llvm/include/llvm/Analysis/AliasAnalysis.h
llvm/include/llvm/Transforms/IPO/Inliner.h
llvm/include/llvm/Transforms/Utils/Cloning.h
llvm/lib/Analysis/AliasAnalysis.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/lib/Transforms/IPO/AlwaysInliner.cpp
llvm/lib/Transforms/IPO/Inliner.cpp
llvm/lib/Transforms/IPO/ModuleInliner.cpp
llvm/lib/Transforms/IPO/PartialInlining.cpp
llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146446.506662.patch
Type: text/x-patch
Size: 43174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230320/ff6e963f/attachment.bin>
More information about the llvm-commits
mailing list