[llvm] [LV][EVL] Support call instruction with EVL-vectorization (PR #110412)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 11:14:47 PST 2024


================
@@ -1027,6 +1027,10 @@ InstructionCost VPWidenIntrinsicRecipe::computeCost(ElementCount VF,
   for (const auto &[Idx, Op] : enumerate(operands())) {
     auto *V = Op->getUnderlyingValue();
     if (!V) {
+      if (VPIntrinsic::isVPIntrinsic(VectorIntrinsicID)) {
+        Arguments.push_back(V);
+        break;
+      }
----------------
fhahn wrote:

Please document at least. Also, a bit surprising to just push 1 `nullptr` instead of 2. Are any cost implementations actually using the IR arguments?

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


More information about the llvm-commits mailing list