[llvm] 4ed205c - [PGO][PGSO] Enable profile guided size optimization for non-cold code under instrumentation PGO.
Hiroshi Yamauchi via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 6 10:29:27 PST 2020
Author: Hiroshi Yamauchi
Date: 2020-02-06T10:29:01-08:00
New Revision: 4ed205c816e9a34de938525b28d6151adf912fe1
URL: https://github.com/llvm/llvm-project/commit/4ed205c816e9a34de938525b28d6151adf912fe1
DIFF: https://github.com/llvm/llvm-project/commit/4ed205c816e9a34de938525b28d6151adf912fe1.diff
LOG: [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
Added:
Modified:
llvm/lib/Transforms/Utils/SizeOpts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/SizeOpts.cpp b/llvm/lib/Transforms/Utils/SizeOpts.cpp
index c25b6774b3fa..951de8d5732d 100644
--- a/llvm/lib/Transforms/Utils/SizeOpts.cpp
+++ b/llvm/lib/Transforms/Utils/SizeOpts.cpp
@@ -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."));
More information about the llvm-commits
mailing list