[all-commits] [llvm/llvm-project] 7f37a8: [InlineCost] Add flag to allow changing the defaul...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Tue Feb 4 12:06:56 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f37a8026f6cfe51479309733be642102428fee4
      https://github.com/llvm/llvm-project/commit/7f37a8026f6cfe51479309733be642102428fee4
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2020-02-04 (Tue, 04 Feb 2020)

  Changed paths:
    M llvm/lib/Analysis/InlineCost.cpp
    A llvm/test/Transforms/Inline/inlinedefault-threshold.ll

  Log Message:
  -----------
  [InlineCost] Add flag to allow changing the default inline cost

Summary:
It can be useful to tune the default inline threshold without overriding other inlining thresholds (e.g. in code compiled for size).

The existing `-inline-threshold` flag overrides other thresholds, so it is insufficient in codebases where there is a mix of code compiled for size and speed.

Patch by Michael Holman <michael.holman at microsoft.com>

Reviewers: eraman, tejohnson

Reviewed By: tejohnson

Subscribers: tejohnson, mtrofin, davidxl, hiraditya, haicheng, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list