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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 00:27:41 PDT 2024


================
@@ -148,6 +148,9 @@ bool VPlanVerifier::verifyEVLRecipe(const VPInstruction &EVL) const {
                return VerifyEVLUse(
                    *W, Instruction::isUnaryOp(W->getOpcode()) ? 1 : 2);
              })
+             .Case<VPWidenCastEVLRecipe>([&](const VPWidenCastEVLRecipe *C) {
+               return VerifyEVLUse(*C, 1);
+             })
----------------
fhahn wrote:

```suggestion
             .Case<VPWidenLoadEVLRecipe, VPWidenCastEVLRecipe>([&](const VPRecipeBase  *C) {
               return VerifyEVLUse(*C, 1);
             })
```

merge with other 1 operand case above if possible

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


More information about the llvm-commits mailing list