[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 13:47:07 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:
I don't see much point. It's fundamental to how the type legalizer works and we don't assert it anywhere else.
https://github.com/llvm/llvm-project/pull/81299
More information about the llvm-commits
mailing list