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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 12:46:08 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));
----------------
topperc wrote:

If they were the same this function shouldn't get called.

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


More information about the llvm-commits mailing list