Skip to content

Commit 4ed205c

Browse files
committed
[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
1 parent d53c8c6 commit 4ed205c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Utils/SizeOpts.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ cl::opt<bool> PGSOLargeWorkingSetSizeOnly(
2424
"if the working set size is large (except for cold code.)"));
2525

2626
cl::opt<bool> PGSOColdCodeOnly(
27-
"pgso-cold-code-only", cl::Hidden, cl::init(true),
27+
"pgso-cold-code-only", cl::Hidden, cl::init(false),
2828
cl::desc("Apply the profile guided size optimizations only "
2929
"to cold code."));
3030

3131
cl::opt<bool> PGSOColdCodeOnlyForInstrPGO(
32-
"pgso-cold-code-only-for-instr-pgo", cl::Hidden, cl::init(true),
32+
"pgso-cold-code-only-for-instr-pgo", cl::Hidden, cl::init(false),
3333
cl::desc("Apply the profile guided size optimizations only "
3434
"to cold code under instrumentation PGO."));
3535

0 commit comments

Comments
 (0)