[Inlining] Add PreInlineThreshold for the new pass manager
authorKazu Hirata <kazu@google.com>
Mon, 13 Jan 2020 14:34:16 +0000 (06:34 -0800)
committerKazu Hirata <kazu@google.com>
Mon, 13 Jan 2020 15:59:42 +0000 (07:59 -0800)
commit6b686703e63f0e992438ce445cbe4b3e78b94ea4
treeeffd97a2f7e276c493a1d87f0ed749db4b26f0a8
parente653d306ce90e5612796d8adce9eb34b1c10e85a
[Inlining] Add PreInlineThreshold for the new pass manager

Summary:
This patch makes it easy to try out different preinlining thresholds
with a command-line switch just like -preinline-threshold for the
legacy pass manager.

Reviewers: davidxl

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72618
llvm/lib/Passes/PassBuilder.cpp