[PGO][PGSO] Prep for enabling non-cold code size opts under non-partial-profile sampl...
authorHiroshi Yamauchi <yamauchi@google.com>
Mon, 27 Apr 2020 17:55:55 +0000 (10:55 -0700)
committerHiroshi Yamauchi <yamauchi@google.com>
Wed, 29 Apr 2020 15:57:47 +0000 (08:57 -0700)
commit18319868267a898ba6559e50653330da0dcd7ed0
treedfbce9b75160cfed98b47ef860652ebac19cba80
parentf0903de1aa7a77a1d1cf9ecdf17e0c16ca135eaa
[PGO][PGSO] Prep for enabling non-cold code size opts under non-partial-profile sample PGO.

Summary:
- Distinguish between partial-profile and non-partial-profile sample PGO.
- Add a flag for partial-profile sample PGO.
- Tune the sample PGO cutoff.
- No default behavior change (yet).

Reviewers: davidxl

Subscribers: eraman, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78949
llvm/include/llvm/Analysis/ProfileSummaryInfo.h
llvm/include/llvm/Transforms/Utils/SizeOpts.h
llvm/lib/Transforms/Utils/SizeOpts.cpp