[llvm] [LV]Initial support for safe distance in predicated DataWithEVL vectorization mode. (PR #102897)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 16:08:21 PDT 2024
================
@@ -1362,9 +1378,24 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
// Create the ExplicitVectorLengthPhi recipe in the main loop.
auto *EVLPhi = new VPEVLBasedIVPHIRecipe(StartV, DebugLoc());
EVLPhi->insertAfter(CanonicalIVPHI);
- auto *VPEVL = new VPInstruction(VPInstruction::ExplicitVectorLength,
- {EVLPhi, Plan.getTripCount()});
- VPEVL->insertBefore(*Header, Header->getFirstNonPhi());
+ VPRecipeBase *AVL = EVLPhi;
----------------
ayalz wrote:
nit:
```suggestion
VPSingleDefRecipe *AVL = EVLPhi;
```
to avoid AVL->getVPSingleValue() below.
https://github.com/llvm/llvm-project/pull/102897
More information about the llvm-commits
mailing list