Skip to content

Commit 01c15f2

Browse files
committed
Fix merge conflicts after syncing to head
- Add missing extern declarations for MemProf command line options - Remove duplicate function definition that conflicts with MemoryProfileInfo
1 parent 912e0f8 commit 01c15f2

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

graphite_command_reference.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

llvm/lib/Transforms/Instrumentation/MemProfInstrumentation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//===- MemProfInstrumentation.cpp - memory allocation and access profiler
2-
//instrumentation ------------===//
2+
// instrumentation ------------===//
33
//
44
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
// See https://llvm.org/LICENSE.txt for license information.

llvm/lib/Transforms/Instrumentation/MemProfUse.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ namespace llvm {
4343
extern cl::opt<bool> PGOWarnMissing;
4444
extern cl::opt<bool> NoPGOWarnMismatch;
4545
extern cl::opt<bool> NoPGOWarnMismatchComdatWeak;
46+
extern cl::opt<bool> MemProfReportHintedSizes;
47+
extern cl::opt<unsigned> MinClonedColdBytePercent;
48+
extern cl::opt<unsigned> MinCallsiteColdBytePercent;
4649
} // namespace llvm
4750

4851
// By default disable matching of allocation profiles onto operator new that
@@ -91,14 +94,6 @@ STATISTIC(NumOfMemProfMatchedAllocs,
9194
STATISTIC(NumOfMemProfMatchedCallSites,
9295
"Number of matched memory profile callsites.");
9396

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-
10297
static void addCallsiteMetadata(Instruction &I,
10398
ArrayRef<uint64_t> InlinedCallStack,
10499
LLVMContext &Ctx) {

0 commit comments

Comments
 (0)