Skip to content

Commit a793037

Browse files
committed
add NodeMap[V] for DAGBuilder cache
1 parent 17952b3 commit a793037

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,8 +1893,9 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {
18931893

18941894
if (VT == MVT::aarch64svcount) {
18951895
assert(C->isNullValue() && "Can only zero this target type!");
1896-
return DAG.getNode(ISD::BITCAST, getCurSDLoc(), VT,
1897-
DAG.getConstant(0, getCurSDLoc(), MVT::nxv16i1));
1896+
return NodeMap[V] =
1897+
DAG.getNode(ISD::BITCAST, getCurSDLoc(), VT,
1898+
DAG.getConstant(0, getCurSDLoc(), MVT::nxv16i1));
18981899
}
18991900

19001901
if (VT.isRISCVVectorTuple()) {

0 commit comments

Comments
 (0)