[llvm] [LV][EVL] Support cast instruction with EVL-vectorization (PR #108351)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 01:47:40 PST 2024


================
@@ -1677,14 +1677,14 @@ class VPWidenIntrinsicRecipe : public VPRecipeWithIRFlags {
   bool MayHaveSideEffects;
 
 public:
-  VPWidenIntrinsicRecipe(CallInst &CI, Intrinsic::ID VectorIntrinsicID,
+  VPWidenIntrinsicRecipe(Instruction &I, Intrinsic::ID VectorIntrinsicID,
----------------
fhahn wrote:

This doesn't seem right, as `I` may have different read/write properties than the intrinsic ID?

Better to use the constructor without CallInst below if no CallInst is available.

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


More information about the llvm-commits mailing list