[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
================
@@ -5859,7 +5866,11 @@ SDValue DAGTypeLegalizer::PromoteIntRes_ScalarOp(SDNode *N) {
EVT NOutElemVT = NOutVT.getVectorElementType();
SDValue Op = DAG.getNode(ISD::ANY_EXTEND, dl, NOutElemVT, N->getOperand(0));
-
+ if (N->isVPOpcode()) {
+ SDValue Mask = N->getOperand(1);
----------------
topperc wrote:
Can we pass N->getOperand(1) and N->getOperand(2) directly to getNode without the temporaries?
https://github.com/llvm/llvm-project/pull/98731
More information about the llvm-commits
mailing list