Skip to content

Commit abcb66d

Browse files
[Scalar] Avoid repeated hash lookups (NFC) (#128463)
1 parent ea24836 commit abcb66d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Scalar/ConstantHoisting.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,7 @@ static void findBestInsertionSet(DominatorTree &DT, BlockFrequencyInfo &BFI,
274274
InsertPtsMap.reserve(Orders.size() + 1);
275275
for (BasicBlock *Node : llvm::reverse(Orders)) {
276276
bool NodeInBBs = BBs.count(Node);
277-
auto &InsertPts = InsertPtsMap[Node].first;
278-
BlockFrequency &InsertPtsFreq = InsertPtsMap[Node].second;
277+
auto &[InsertPts, InsertPtsFreq] = InsertPtsMap[Node];
279278

280279
// Return the optimal insert points in BBs.
281280
if (Node == Entry) {

0 commit comments

Comments
 (0)