[llvm][ModuleInliner] Add inline cost priority for module inliner
authorLiqiang Tao <taolq@outlook.com>
Mon, 18 Jul 2022 14:49:13 +0000 (22:49 +0800)
committerLiqiang Tao <taolq@outlook.com>
Thu, 28 Jul 2022 14:44:03 +0000 (22:44 +0800)
commitd52e775b05a4eb1217e0e007b702f46ea097c2a3
tree2e1f6a2e290f37c3d24e8201521f66beb47ae196
parentcf0196db8831b478e64959e114e7ca08e04645dc
[llvm][ModuleInliner] Add inline cost priority for module inliner

This patch introduces the inline cost priority into the
module inliner, which uses the same computation as
InlineCost.

Reviewed By: kazu

Differential Revision: https://reviews.llvm.org/D130012
llvm/include/llvm/Analysis/InlineOrder.h
llvm/lib/Analysis/CMakeLists.txt
llvm/lib/Analysis/InlineOrder.cpp [new file with mode: 0644]
llvm/lib/Transforms/IPO/ModuleInliner.cpp