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

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 11 18:51:35 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:

I want to set the correct the argument size in CostAttrs. Passing the EVL parameter, the argumnet will be cleare. some vp cost will judge the number of parameters.Do you have any better suggestions?
![image](https://github.com/user-attachments/assets/c0bde4be-73a7-4312-b18d-38e61726d4e9)



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


More information about the llvm-commits mailing list