@@ -1855,7 +1855,7 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {
18551855
18561856 if (isa<ArrayType>(CDS->getType ()))
18571857 return DAG.getMergeValues (Ops, getCurSDLoc ());
1858- return NodeMap[V] = DAG.getBuildVector (VT, getCurSDLoc (), Ops);
1858+ return DAG.getBuildVector (VT, getCurSDLoc (), Ops);
18591859 }
18601860
18611861 if (C->getType ()->isStructTy () || C->getType ()->isArrayTy ()) {
@@ -1898,14 +1898,13 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {
18981898
18991899 if (VT.isRISCVVectorTuple ()) {
19001900 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 ))));
19091908 }
19101909
19111910 VectorType *VecTy = cast<VectorType>(V->getType ());
@@ -1918,7 +1917,7 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {
19181917 for (unsigned i = 0 ; i != NumElements; ++i)
19191918 Ops.push_back (getValue (CV->getOperand (i)));
19201919
1921- return NodeMap[V] = DAG.getBuildVector (VT, getCurSDLoc (), Ops);
1920+ return DAG.getBuildVector (VT, getCurSDLoc (), Ops);
19221921 }
19231922
19241923 if (isa<ConstantAggregateZero>(C)) {
@@ -1931,7 +1930,7 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {
19311930 else
19321931 Op = DAG.getConstant (0 , getCurSDLoc (), EltVT);
19331932
1934- return NodeMap[V] = DAG.getSplat (VT, getCurSDLoc (), Op);
1933+ return DAG.getSplat (VT, getCurSDLoc (), Op);
19351934 }
19361935
19371936 llvm_unreachable (" Unknown vector constant" );
0 commit comments