Skip to content

Commit

Permalink
[SelectionDAG] Use MemVT for FoldingSetNodeID in SelectionDAG::getLoa…
Browse files Browse the repository at this point in the history
…dVP.

Return types and operands are put in the ID by AddNodeIDNode. I'm
pretty sure this was supposed to be the memory VT.
  • Loading branch information
topperc committed Apr 3, 2023
1 parent 5217782 commit 65f3794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8378,7 +8378,7 @@ SDValue SelectionDAG::getLoadVP(ISD::MemIndexedMode AM,
SDValue Ops[] = {Chain, Ptr, Offset, Mask, EVL};
FoldingSetNodeID ID;
AddNodeIDNode(ID, ISD::VP_LOAD, VTs, Ops);
ID.AddInteger(VT.getRawBits());
ID.AddInteger(MemVT.getRawBits());
ID.AddInteger(getSyntheticNodeSubclassData<VPLoadSDNode>(
dl.getIROrder(), VTs, AM, ExtType, IsExpanding, MemVT, MMO));
ID.AddInteger(MMO->getPointerInfo().getAddrSpace());
Expand Down

0 comments on commit 65f3794

Please sign in to comment.