[PATCH] D117989: [RISCV] Add the passthru operand for RVV nomask binary intrinsics.

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 6 20:42:47 PST 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:4503
   case Intrinsic::riscv_vslide1down_mask: {
     // We need to special case these when the scalar is larger than XLen.
     unsigned NumOps = Op.getNumOperands();
----------------
Are we dropping the policy operand for masked intrinsics here?


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:4539
+    if (!IsMasked) {
+      SDValue passthru = DAG.getBitcast(I32VT, Op.getOperand(1));
+      if (IntNo == Intrinsic::riscv_vslide1up) {
----------------
Capitalize variable name


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117989/new/

https://reviews.llvm.org/D117989



More information about the cfe-commits mailing list