From 65f379411180a365889f48237fb1780f2c55a47a Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 3 Apr 2023 15:15:48 -0700 Subject: [PATCH] [SelectionDAG] Use MemVT for FoldingSetNodeID in SelectionDAG::getLoadVP. Return types and operands are put in the ID by AddNodeIDNode. I'm pretty sure this was supposed to be the memory VT. --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index faffe53..acb67b1 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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( dl.getIROrder(), VTs, AM, ExtType, IsExpanding, MemVT, MMO)); ID.AddInteger(MMO->getPointerInfo().getAddrSpace()); -- 2.7.4