[all-commits] [llvm/llvm-project] aa6ee0: [NFC][Inliner] Introduce another multiplier for co...

Mingming Liu via All-commits all-commits at lists.llvm.org
Mon Oct 2 21:27:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aa6ee03709521a5ecb46f54a77eccc6fca277f28
      https://github.com/llvm/llvm-project/commit/aa6ee03709521a5ecb46f54a77eccc6fca277f28
  Author: Mingming Liu <mingmingl at google.com>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetTransformInfo.h
    M llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
    M llvm/lib/Analysis/InlineCost.cpp
    M llvm/lib/Analysis/TargetTransformInfo.cpp
    A llvm/test/Transforms/Inline/inline-cost-benefit-multiplier-override.ll

  Log Message:
  -----------
  [NFC][Inliner] Introduce another multiplier for cost benefit analysis and make multipliers overriddable in TargetTransformInfo.

- The motivation is to expose tunable knobs to control the aggressiveness of inlines for different backend (e.g., machines with different icache size, and workload with different icache/itlb PMU counters). Tuning inline aggressiveness shows a small (~+0.3%) but stable improvement on workload/hardware that is more frontend bound.
- Both multipliers could be overridden from command line.

Reviewed By: kazu

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




More information about the All-commits mailing list