Skip to content

Commit 1e4e1ce

Browse files
[Target] Avoid repeated hash lookups (NFC) (#108677)
1 parent bae275f commit 1e4e1ce

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

llvm/lib/Target/ARM/ARMISelLowering.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -8017,7 +8017,6 @@ SDValue ARMTargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG,
80178017
if (!isa<ConstantFPSDNode>(V) && !isa<ConstantSDNode>(V))
80188018
isConstant = false;
80198019

8020-
ValueCounts.insert(std::make_pair(V, 0));
80218020
unsigned &Count = ValueCounts[V];
80228021

80238022
// Is this value dominant? (takes up more than half of the lanes)

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -3679,7 +3679,6 @@ static SDValue lowerBuildVectorViaDominantValues(SDValue Op, SelectionDAG &DAG,
36793679
if (V.isUndef())
36803680
continue;
36813681

3682-
ValueCounts.insert(std::make_pair(V, 0));
36833682
unsigned &Count = ValueCounts[V];
36843683
if (0 == Count)
36853684
if (auto *CFP = dyn_cast<ConstantFPSDNode>(V))

0 commit comments

Comments
 (0)