From 4ed205c816e9a34de938525b28d6151adf912fe1 Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Wed, 5 Feb 2020 10:02:12 -0800 Subject: [PATCH] [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 --- llvm/lib/Transforms/Utils/SizeOpts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Transforms/Utils/SizeOpts.cpp b/llvm/lib/Transforms/Utils/SizeOpts.cpp index c25b677..951de8d 100644 --- a/llvm/lib/Transforms/Utils/SizeOpts.cpp +++ b/llvm/lib/Transforms/Utils/SizeOpts.cpp @@ -24,12 +24,12 @@ cl::opt PGSOLargeWorkingSetSizeOnly( "if the working set size is large (except for cold code.)")); cl::opt 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 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.")); -- 2.7.4