HomePhabricator

[InlineCost] Add flag to allow changing the default inline cost

Authored by tejohnson on Feb 4 2020, 10:37 AM.

Description

[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@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

Details

Committed
tejohnsonFeb 4 2020, 12:06 PM
Reviewer
tejohnson
Differential Revision
D73217: [InlineCost] Add flag to allow changing the default inline cost
Parents
rG5d2749938c4e: AMDGPU/GlobalISel: Custom lower G_FEXP
Branches
Unknown
Tags
Unknown