[all-commits] [llvm/llvm-project] 2d6ec1: [ModuleInliner] Add MLPriority

kazutakahirata via All-commits all-commits at lists.llvm.org
Fri Dec 2 14:25:27 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d6ec146dd1f61d5293dd22d5b395f0e580ab0d0
      https://github.com/llvm/llvm-project/commit/2d6ec146dd1f61d5293dd22d5b395f0e580ab0d0
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-12-02 (Fri, 02 Dec 2022)

  Changed paths:
    M llvm/lib/Analysis/InlineOrder.cpp
    M llvm/test/Transforms/Inline/module-inliner-basic.ll

  Log Message:
  -----------
  [ModuleInliner] Add MLPriority

This patch adds MLPriority as the first step toward the ML-based
function inlining with the module inliner.

For now, MLPriority is completely identical to CostPriority.

Once this patch lands, I'm planning to:

- integrate NoInferenceModelRunner,

- memoize the priority computation so that the priority remains the
  same for given values of metrics even with the noise injected during
  training, and

- port/take more features into account.

Differential Revision: https://reviews.llvm.org/D139140




More information about the All-commits mailing list