@@ -1855,7 +1855,7 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {
1855
1855
1856
1856
if (isa<ArrayType>(CDS->getType ()))
1857
1857
return DAG.getMergeValues (Ops, getCurSDLoc ());
1858
- return NodeMap[V] = DAG.getBuildVector (VT, getCurSDLoc (), Ops);
1858
+ return DAG.getBuildVector (VT, getCurSDLoc (), Ops);
1859
1859
}
1860
1860
1861
1861
if (C->getType ()->isStructTy () || C->getType ()->isArrayTy ()) {
@@ -1898,14 +1898,13 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {
1898
1898
1899
1899
if (VT.isRISCVVectorTuple ()) {
1900
1900
assert (C->isNullValue () && " Can only zero this target type!" );
1901
- return NodeMap[V] = DAG.getNode (
1902
- ISD::BITCAST, getCurSDLoc (), VT,
1903
- DAG.getNode (
1904
- ISD::SPLAT_VECTOR, getCurSDLoc (),
1905
- EVT::getVectorVT (*DAG.getContext (), MVT::i8 ,
1906
- VT.getSizeInBits ().getKnownMinValue () / 8 ,
1907
- true ),
1908
- DAG.getConstant (0 , getCurSDLoc (), MVT::getIntegerVT (8 ))));
1901
+ return DAG.getNode (
1902
+ ISD::BITCAST, getCurSDLoc (), VT,
1903
+ DAG.getNode (
1904
+ ISD::SPLAT_VECTOR, getCurSDLoc (),
1905
+ EVT::getVectorVT (*DAG.getContext (), MVT::i8 ,
1906
+ VT.getSizeInBits ().getKnownMinValue () / 8 , true ),
1907
+ DAG.getConstant (0 , getCurSDLoc (), MVT::getIntegerVT (8 ))));
1909
1908
}
1910
1909
1911
1910
VectorType *VecTy = cast<VectorType>(V->getType ());
@@ -1918,7 +1917,7 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {
1918
1917
for (unsigned i = 0 ; i != NumElements; ++i)
1919
1918
Ops.push_back (getValue (CV->getOperand (i)));
1920
1919
1921
- return NodeMap[V] = DAG.getBuildVector (VT, getCurSDLoc (), Ops);
1920
+ return DAG.getBuildVector (VT, getCurSDLoc (), Ops);
1922
1921
}
1923
1922
1924
1923
if (isa<ConstantAggregateZero>(C)) {
@@ -1931,7 +1930,7 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {
1931
1930
else
1932
1931
Op = DAG.getConstant (0 , getCurSDLoc (), EltVT);
1933
1932
1934
- return NodeMap[V] = DAG.getSplat (VT, getCurSDLoc (), Op);
1933
+ return DAG.getSplat (VT, getCurSDLoc (), Op);
1935
1934
}
1936
1935
1937
1936
llvm_unreachable (" Unknown vector constant" );
0 commit comments