Skip to content

Commit 2c56383

Browse files
[Hexagon] Avoid repeated hash lookups (NFC) (#131719)
1 parent 0753244 commit 2c56383

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,10 +2437,7 @@ void HexagonDAGToDAGISel::rebalanceAddressTrees() {
24372437
continue;
24382438

24392439
// This root node has already been processed
2440-
if (RootWeights.count(N))
2441-
continue;
2442-
2443-
RootWeights[N] = -1;
2440+
RootWeights.try_emplace(N, -1);
24442441
}
24452442

24462443
// Balance node itself

0 commit comments

Comments
 (0)