[llvm] [memprof] Simplify readMemprof (NFC) (PR #119930)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 17:25:11 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 537e0e1ff639ed4f8fa4dadbc84f4a6a12e1d20a 4dba1363c3dd2c43c4a7ff395b82d4455a4606f4 --extensions cpp -- llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
index 0b310d9c8a..c980869a1c 100644
--- a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
@@ -993,8 +993,7 @@ readMemprof(Module &M, Function &F, IndexedInstrProfReader *MemProfReader,
unsigned Idx = 0;
for (auto &StackFrame : CS) {
uint64_t StackId = computeStackId(StackFrame);
- LocHashToCallSites[StackId].insert(
- ArrayRef<Frame>(CS).drop_front(Idx++));
+ LocHashToCallSites[StackId].insert(ArrayRef<Frame>(CS).drop_front(Idx++));
ProfileHasColumns |= StackFrame.Column;
// Once we find this function, we can stop recording.
if (StackFrame.Function == FuncGUID)
``````````
</details>
https://github.com/llvm/llvm-project/pull/119930
More information about the llvm-commits
mailing list