Skip to content

Commit a8bea0a

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 a8bea0a

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

graphite_command_reference.md

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

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)