Skip to content

Commit 06829f4

Browse files
[Hexagon] Avoid repeated hash lookups (NFC) (#127578)
1 parent 4cfeebd commit 06829f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,8 +1174,8 @@ auto AlignVectors::realignLoadGroup(IRBuilderBase &Builder,
11741174
for (const ByteSpan::Block &B : VSpan) {
11751175
ByteSpan ASection = ASpan.section(B.Pos, B.Seg.Size);
11761176
for (const ByteSpan::Block &S : ASection) {
1177-
EarliestUser[S.Seg.Val] = std::min(
1178-
EarliestUser[S.Seg.Val], earliestUser(B.Seg.Val->uses()), isEarlier);
1177+
auto &EU = EarliestUser[S.Seg.Val];
1178+
EU = std::min(EU, earliestUser(B.Seg.Val->uses()), isEarlier);
11791179
}
11801180
}
11811181

0 commit comments

Comments
 (0)