Skip to content

Commit 62d2cc8

Browse files
[CodeGen] Avoid repeated hash lookups (NFC) (#135540)
1 parent 703cfe7 commit 62d2cc8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,8 +2332,9 @@ void ComplexDeinterleavingGraph::replaceNodes() {
23322332
} else if (RootNode->Operation ==
23332333
ComplexDeinterleavingOperation::ReductionSingle) {
23342334
auto *RootInst = cast<Instruction>(RootNode->Real);
2335-
ReductionInfo[RootInst].first->removeIncomingValue(BackEdge);
2336-
DeadInstrRoots.push_back(ReductionInfo[RootInst].second);
2335+
auto &Info = ReductionInfo[RootInst];
2336+
Info.first->removeIncomingValue(BackEdge);
2337+
DeadInstrRoots.push_back(Info.second);
23372338
} else {
23382339
assert(R && "Unable to find replacement for RootInstruction");
23392340
DeadInstrRoots.push_back(RootInstruction);

0 commit comments

Comments
 (0)