[llvm] [VPlan] Fix crash with EVL tail folding intrinsic with no corresponding VP (PR #121542)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 05:52:07 PST 2025
================
@@ -1498,10 +1498,11 @@ static VPRecipeBase *createEVLRecipe(VPValue *HeaderMask,
auto *CastR = cast<VPWidenCastRecipe>(CR);
VPID = VPIntrinsic::getForOpcode(CastR->getOpcode());
}
- assert(VPID != Intrinsic::not_intrinsic && "Expected VP intrinsic");
+ if (VPID == Intrinsic::not_intrinsic)
----------------
fhahn wrote:
```suggestion
// Not all intrinsics have a corresponding VP intrinsic.
if (VPID == Intrinsic::not_intrinsic)
```
https://github.com/llvm/llvm-project/pull/121542
More information about the llvm-commits
mailing list