[all-commits] [llvm/llvm-project] 386aa2: [FuncSpec] Increase the maximum number of times th...

Alexandros Lamprineas via All-commits all-commits at lists.llvm.org
Tue Aug 22 01:41:06 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 386aa2ab9d19c783deb9fbfb3b9be14754ba8789
  Author: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
    M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
    M llvm/lib/Transforms/IPO/SCCP.cpp
    A llvm/test/Transforms/FunctionSpecialization/recursive-penalty.ll

  Log Message:
  [FuncSpec] Increase the maximum number of times the specializer can run.

* Changes the default value of FuncSpecMaxIters from 1 to 10.
  This allows specialization of recursive functions.
* Adds an option to control the maximum codesize growth per function.
* Measured ~45% performance uplift for SPEC2017:548.exchange2_r on
  AWS Graviton3.

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

More information about the All-commits mailing list