[llvm] [VPlan] Introduce recipes for VP loads and stores. (PR #87816)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 5 11:55:37 PDT 2024


================
@@ -1347,6 +1337,48 @@ void VPlanTransforms::addExplicitVectorLength(VPlan &Plan) {
   CanonicalIVIncrement->setOperand(0, CanonicalIVPHI);
   // TODO: support unroll factor > 1.
   Plan.setUF(1);
+
+  VPValue *BTC = Plan.getOrCreateBackedgeTakenCount();
+  auto IsHeaderMask = [BTC](VPValue *V) {
----------------
alexey-bataev wrote:

```suggestion
  auto IsHeaderMask = [BTC = Plan.getOrCreateBackedgeTakenCount()](VPValue *V) {
```

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


More information about the llvm-commits mailing list