File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
llvm/lib/Transforms/Instrumentation Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ namespace llvm {
43
43
extern cl::opt<bool > PGOWarnMissing;
44
44
extern cl::opt<bool > NoPGOWarnMismatch;
45
45
extern cl::opt<bool > NoPGOWarnMismatchComdatWeak;
46
+ extern cl::opt<bool > MemProfReportHintedSizes;
47
+ extern cl::opt<unsigned > MinClonedColdBytePercent;
48
+ extern cl::opt<unsigned > MinCallsiteColdBytePercent;
46
49
} // namespace llvm
47
50
48
51
// By default disable matching of allocation profiles onto operator new that
@@ -91,14 +94,6 @@ STATISTIC(NumOfMemProfMatchedAllocs,
91
94
STATISTIC (NumOfMemProfMatchedCallSites,
92
95
" Number of matched memory profile callsites." );
93
96
94
- // Options under which we need to record the context size info in the alloc trie
95
- // used to build metadata.
96
- bool recordContextSizeInfo () {
97
- return MemProfReportHintedSizes || MinClonedColdBytePercent < 100 ||
98
- MinCallsiteColdBytePercent < 100 ;
99
-
100
- }
101
-
102
97
static void addCallsiteMetadata (Instruction &I,
103
98
ArrayRef<uint64_t > InlinedCallStack,
104
99
LLVMContext &Ctx) {
You can’t perform that action at this time.
0 commit comments