Skip to content

Commit

Permalink
add NodeMap[V] for DAGBuilder cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dlee992 committed Feb 6, 2025
1 parent 17952b3 commit a793037
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1893,8 +1893,9 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {

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

if (VT.isRISCVVectorTuple()) {
Expand Down

0 comments on commit a793037

Please sign in to comment.