[llvm] [LV] Fix crash when vectorizing function calls with linear args. (PR #76274)

Maciej Gabka via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 28 03:04:11 PST 2023


================
@@ -498,13 +498,15 @@ void VPWidenCallRecipe::execute(VPTransformState &State) {
          "DbgInfoIntrinsic should have been dropped during VPlan construction");
   State.setDebugLocFrom(CI.getDebugLoc());
 
+  Intrinsic::ID ID = VectorIntrinsicID;
----------------
mgabka wrote:

Is it worth to create a local variable ? IMO it is better to use the "VectorIntrinsicID"

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


More information about the llvm-commits mailing list