[llvm] [VPlan] Introduce VPWidenIntrinsicRecipe to separate from libcall. (PR #110486)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 4 10:00:19 PDT 2024


================
@@ -8306,8 +8313,9 @@ VPWidenCallRecipe *VPRecipeBuilder::tryToWidenCall(CallInst *CI,
                 },
                 Range);
   if (ShouldUseVectorIntrinsic)
-    return new VPWidenCallRecipe(CI, make_range(Ops.begin(), Ops.end()), ID,
-                                 CI->getDebugLoc());
+    return new VPWidenIntrinsicRecipe(*CI, ID,
+                                      make_range(Ops.begin(), Ops.end() - 1),
----------------
alexey-bataev wrote:

Maybe move Ops.push_back(Operands.back()); from line 8305 to line 8319 to avoid -1 here?

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


More information about the llvm-commits mailing list