[PGO][PGSO] Enable profile guided size optimization for non-cold code under instrumentation PGO.

Summary:
This enables it for large working set size cases only.

This does not enable it under sample PGO.

Reviewers: davidxl

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74073
This commit is contained in:
Hiroshi Yamauchi 2020-02-05 10:02:12 -08:00
parent d53c8c6af5
commit 4ed205c816
1 changed files with 2 additions and 2 deletions

View File

@ -24,12 +24,12 @@ cl::opt<bool> PGSOLargeWorkingSetSizeOnly(
"if the working set size is large (except for cold code.)"));
cl::opt<bool> PGSOColdCodeOnly(
"pgso-cold-code-only", cl::Hidden, cl::init(true),
"pgso-cold-code-only", cl::Hidden, cl::init(false),
cl::desc("Apply the profile guided size optimizations only "
"to cold code."));
cl::opt<bool> PGSOColdCodeOnlyForInstrPGO(
"pgso-cold-code-only-for-instr-pgo", cl::Hidden, cl::init(true),
"pgso-cold-code-only-for-instr-pgo", cl::Hidden, cl::init(false),
cl::desc("Apply the profile guided size optimizations only "
"to cold code under instrumentation PGO."));