[llvm] 65f3794 - [SelectionDAG] Use MemVT for FoldingSetNodeID in SelectionDAG::getLoadVP.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 3 15:15:56 PDT 2023


Author: Craig Topper
Date: 2023-04-03T15:15:48-07:00
New Revision: 65f379411180a365889f48237fb1780f2c55a47a

URL: https://github.com/llvm/llvm-project/commit/65f379411180a365889f48237fb1780f2c55a47a
DIFF: https://github.com/llvm/llvm-project/commit/65f379411180a365889f48237fb1780f2c55a47a.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index faffe53cfce4..acb67b10b52b 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<VPLoadSDNode>(
       dl.getIROrder(), VTs, AM, ExtType, IsExpanding, MemVT, MMO));
   ID.AddInteger(MMO->getPointerInfo().getAddrSpace());


        


More information about the llvm-commits mailing list