Skip to content

Commit a5d3cac

Browse files
committed
[llvm-profgen] Turn off cold context trimming by default
We merge cold context by default to save profile size. However trimming cold context after merging doesn't save size much, so default to off to reflect how it's commonly used. Differential Revision: https://reviews.llvm.org/D109166
1 parent d53a4e7 commit a5d3cac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-profgen/ProfileGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static cl::opt<bool> CSProfMergeColdContext(
4646
"profile."));
4747

4848
static cl::opt<bool> CSProfTrimColdContext(
49-
"csprof-trim-cold-context", cl::init(true), cl::ZeroOrMore,
49+
"csprof-trim-cold-context", cl::init(false), cl::ZeroOrMore,
5050
cl::desc("If the total count of the profile after all merge is done "
5151
"is still smaller than threshold, it will be trimmed."));
5252

0 commit comments

Comments
 (0)