[llvm] 2886576 - [memprof] clang-format MemProf-related files (NFC) (#120504)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 10:25:33 PST 2024
Author: Kazu Hirata
Date: 2024-12-19T10:25:29-08:00
New Revision: 28865769440756138a88a9c8e8b72b1f5d8db715
URL: https://github.com/llvm/llvm-project/commit/28865769440756138a88a9c8e8b72b1f5d8db715
DIFF: https://github.com/llvm/llvm-project/commit/28865769440756138a88a9c8e8b72b1f5d8db715.diff
LOG: [memprof] clang-format MemProf-related files (NFC) (#120504)
Added:
Modified:
llvm/lib/ProfileData/MemProfReader.cpp
llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ProfileData/MemProfReader.cpp b/llvm/lib/ProfileData/MemProfReader.cpp
index 9dd43d34f2a0bb..10c36f25c4b795 100644
--- a/llvm/lib/ProfileData/MemProfReader.cpp
+++ b/llvm/lib/ProfileData/MemProfReader.cpp
@@ -596,8 +596,8 @@ Error RawMemProfReader::symbolizeAndFilterStackFrames(
// Drop the entries where the callstack is empty.
for (const uint64_t Id : EntriesToErase) {
StackMap.erase(Id);
- if(CallstackProfileData[Id].AccessHistogramSize > 0)
- free((void*) CallstackProfileData[Id].AccessHistogram);
+ if (CallstackProfileData[Id].AccessHistogramSize > 0)
+ free((void *)CallstackProfileData[Id].AccessHistogram);
CallstackProfileData.erase(Id);
}
diff --git a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
index db8999911b7f92..fea45d53b2eb47 100644
--- a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
@@ -152,7 +152,7 @@ static cl::opt<int> ClDebugMax("memprof-debug-max", cl::desc("Debug max inst"),
// override these hints anyway.
static cl::opt<bool> ClMemProfMatchHotColdNew(
"memprof-match-hot-cold-new",
- cl::desc(
+ cl::desc(
"Match allocation profiles onto existing hot/cold operator new calls"),
cl::Hidden, cl::init(false));
More information about the llvm-commits
mailing list