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

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 22:55:51 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;
+      }
----------------
LiqinWeng wrote:

When the CallArguments of IntrinsicRecipe is recipe, it is also nullptr, as follows:
![image](https://github.com/user-attachments/assets/cac4666c-bda6-4a76-bf3b-5c3316749716)


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


More information about the llvm-commits mailing list