[all-commits] [llvm/llvm-project] 87c0f6: [Outliner] Add an option to only enable outlining ...

Nathan Lanza via All-commits all-commits at lists.llvm.org
Fri Apr 7 23:13:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 87c0f6773970f41f0e464690862f05bc109ee8d0
      https://github.com/llvm/llvm-project/commit/87c0f6773970f41f0e464690862f05bc109ee8d0
  Author: Nathan Lanza <nathanlanza at gmail.com>
  Date:   2023-04-08 (Sat, 08 Apr 2023)

  Changed paths:
    M llvm/lib/CodeGen/MachineOutliner.cpp
    A llvm/test/CodeGen/AArch64/machine-outliner-threshold.mir

  Log Message:
  -----------
  [Outliner] Add an option to only enable outlining of patterns above a certain threshold

Outlining isn't always a win when the saved instruction count is >= 1.
The overhead of representing a new function in the binary depends on
exception metadata and alignment. So parameterize this for local tuning.

Reviewed By: paquette

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




More information about the All-commits mailing list