[llvm] 06829f4 - [Hexagon] Avoid repeated hash lookups (NFC) (#127578)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 18 08:40:06 PST 2025
Author: Kazu Hirata
Date: 2025-02-18T08:40:03-08:00
New Revision: 06829f4f8fc0ab5ed6fc8fd9b0918bc13eb9fea0
URL: https://github.com/llvm/llvm-project/commit/06829f4f8fc0ab5ed6fc8fd9b0918bc13eb9fea0
DIFF: https://github.com/llvm/llvm-project/commit/06829f4f8fc0ab5ed6fc8fd9b0918bc13eb9fea0.diff
LOG: [Hexagon] Avoid repeated hash lookups (NFC) (#127578)
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
index 4e4467c76aff5..0760d712f9afd 100644
--- a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
@@ -1174,8 +1174,8 @@ auto AlignVectors::realignLoadGroup(IRBuilderBase &Builder,
for (const ByteSpan::Block &B : VSpan) {
ByteSpan ASection = ASpan.section(B.Pos, B.Seg.Size);
for (const ByteSpan::Block &S : ASection) {
- EarliestUser[S.Seg.Val] = std::min(
- EarliestUser[S.Seg.Val], earliestUser(B.Seg.Val->uses()), isEarlier);
+ auto &EU = EarliestUser[S.Seg.Val];
+ EU = std::min(EU, earliestUser(B.Seg.Val->uses()), isEarlier);
}
}
More information about the llvm-commits
mailing list