[llvm] [VP][RISCV] Introduce vp.splat and RISC-V. (PR #98731)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 11:41:41 PDT 2024
================
@@ -2211,10 +2213,14 @@ SDValue DAGTypeLegalizer::PromoteIntOp_INSERT_VECTOR_ELT(SDNode *N,
}
SDValue DAGTypeLegalizer::PromoteIntOp_ScalarOp(SDNode *N) {
+ SDValue Op = GetPromotedInteger(N->getOperand(0));
+ if (N->getOpcode() == ISD::EXPERIMENTAL_VP_SPLAT)
+ return DAG.getNode(ISD::EXPERIMENTAL_VP_SPLAT, SDLoc(N), N->getValueType(0),
----------------
topperc wrote:
Can we use UpdateNodeOperands?
https://github.com/llvm/llvm-project/pull/98731
More information about the llvm-commits
mailing list