[llvm] [Analysis][NFC] Store CallbackVH in vector, not in map (PR #184323)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 03:17:34 PST 2026
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 origin/main HEAD --extensions h -- llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h b/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
index b3c48ee02..54f4e70bf 100644
--- a/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
+++ b/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
@@ -1166,8 +1166,7 @@ template <class BT> void BlockFrequencyInfoImpl<BT>::initializeRPOT() {
LLVM_DEBUG(dbgs() << "reverse-post-order-traversal\n");
for (auto [Idx, Block] : enumerate(RPOT)) {
BlockNode Node = BlockNode(Idx);
- LLVM_DEBUG(dbgs() << " - " << Idx << ": " << getBlockName(Node)
- << "\n");
+ LLVM_DEBUG(dbgs() << " - " << Idx << ": " << getBlockName(Node) << "\n");
Nodes[Block] = Node;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/184323
More information about the llvm-commits
mailing list