[llvm] d38fcb4 - BlockFrequencyInfoImpl.h - use auto* for pointer types. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 12 08:42:45 PST 2023
Author: Simon Pilgrim
Date: 2023-02-12T16:42:28Z
New Revision: d38fcb4216579b477c539c2e193b60905a219400
URL: https://github.com/llvm/llvm-project/commit/d38fcb4216579b477c539c2e193b60905a219400
DIFF: https://github.com/llvm/llvm-project/commit/d38fcb4216579b477c539c2e193b60905a219400.diff
LOG: BlockFrequencyInfoImpl.h - use auto* for pointer types. NFC.
Silence clang-tidy llvm-qualified-auto warnings
Added:
Modified:
llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h b/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
index 2186ace5a9422..46836536364df 100644
--- a/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
+++ b/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
@@ -311,14 +311,14 @@ class BlockFrequencyInfoImplBase {
/// the context of distributing mass, L will be the number of loop headers
/// an early exit edge jumps out of.
BlockNode getResolvedNode() const {
- auto L = getPackagedLoop();
+ auto *L = getPackagedLoop();
return L ? L->getHeader() : Node;
}
LoopData *getPackagedLoop() const {
if (!Loop || !Loop->IsPackaged)
return nullptr;
- auto L = Loop;
+ auto *L = Loop;
while (L->Parent && L->Parent->IsPackaged)
L = L->Parent;
return L;
@@ -1655,7 +1655,7 @@ template <class BT> struct BlockEdgesAdder {
void operator()(IrreducibleGraph &G, IrreducibleGraph::IrrNode &Irr,
const LoopData *OuterLoop) {
const BlockT *BB = BFI.RPOT[Irr.Node.Index];
- for (const auto Succ : children<const BlockT *>(BB))
+ for (const auto *Succ : children<const BlockT *>(BB))
G.addEdge(Irr, BFI.getNode(Succ), OuterLoop);
}
};
More information about the llvm-commits
mailing list