[llvm] [LV][EVL] Introduce MergeUntilPivot VPInstruction to enable out-loop reduction in EVL vectorization. (PR #101641)

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 08:08:34 PDT 2024


================
@@ -1125,6 +1125,8 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
         *FOp, ICA.getArgTypes()[0], UI->getPointerAlignment(),
         UI->getOperand(1)->getType()->getPointerAddressSpace(), CostKind);
   }
+  case Intrinsic::vp_merge:
+    return 1;
----------------
ElvisWang123 wrote:

Sure, I will implement the instruction cost of `vp_merge` in `getIntrinsicInstrCost()`.

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


More information about the llvm-commits mailing list