[llvm] 9e1decf - [PGO][PGSO] Enable non-cold size opts under partial profile sample PGO.

Hiroshi Yamauchi via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 22 10:13:00 PDT 2020


Author: Hiroshi Yamauchi
Date: 2020-06-22T10:12:48-07:00
New Revision: 9e1decf7434641411b78a5c140ee1f2eff7f0d50

URL: https://github.com/llvm/llvm-project/commit/9e1decf7434641411b78a5c140ee1f2eff7f0d50
DIFF: https://github.com/llvm/llvm-project/commit/9e1decf7434641411b78a5c140ee1f2eff7f0d50.diff

LOG: [PGO][PGSO] Enable non-cold size opts under partial profile sample PGO.

Summary: Similar to D81020. Follow up D78949.

Reviewers: davidxl

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82053

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 f18f6b4c5a6a..e257c5a015f5 100644
--- a/llvm/lib/Transforms/Utils/SizeOpts.cpp
+++ b/llvm/lib/Transforms/Utils/SizeOpts.cpp
@@ -39,7 +39,7 @@ cl::opt<bool> PGSOColdCodeOnlyForSamplePGO(
              "to cold code under sample PGO."));
 
 cl::opt<bool> PGSOColdCodeOnlyForPartialSamplePGO(
-    "pgso-cold-code-only-for-partial-sample-pgo", cl::Hidden, cl::init(true),
+    "pgso-cold-code-only-for-partial-sample-pgo", cl::Hidden, cl::init(false),
     cl::desc("Apply the profile guided size optimizations only "
              "to cold code under partial-profile sample PGO."));
 


        


More information about the llvm-commits mailing list