[PATCH] D74073: [PGO][PGSO] Enable profile guided size optimization for non-cold code under instrumentation PGO.
Hiroshi Yamauchi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 10:15:27 PST 2020
yamauchi created this revision.
yamauchi added a reviewer: davidxl.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
This enables it for large working set size cases only.
This does not enable it under sample PGO.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74073
Files:
llvm/lib/Transforms/Utils/SizeOpts.cpp
Index: llvm/lib/Transforms/Utils/SizeOpts.cpp
===================================================================
--- llvm/lib/Transforms/Utils/SizeOpts.cpp
+++ llvm/lib/Transforms/Utils/SizeOpts.cpp
@@ -24,12 +24,12 @@
"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."));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74073.242681.patch
Type: text/x-patch
Size: 857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200205/8be9bfdd/attachment.bin>
More information about the llvm-commits
mailing list