[llvm] [SelectionDAG] Support integer promotion for VP_LOAD and VP_STORE (PR #81299)

zhijian lin via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 13:41:23 PDT 2024


================
@@ -875,6 +878,23 @@ SDValue DAGTypeLegalizer::PromoteIntRes_LOAD(LoadSDNode *N) {
   return Res;
 }
 
+SDValue DAGTypeLegalizer::PromoteIntRes_VP_LOAD(VPLoadSDNode *N) {
+  assert(!N->isIndexed() && "Indexed vp_load during type legalization!");
+  EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), N->getValueType(0));
----------------
diggerlin wrote:

do we want to add an assert here ?

https://github.com/llvm/llvm-project/pull/81299


More information about the llvm-commits mailing list