[llvm] [VPlan] Remove loop region in optimizeForVFAndUF. (PR #108378)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 10:29:24 PDT 2024
================
@@ -696,16 +696,46 @@ void VPlanTransforms::optimizeForVFAndUF(VPlan &Plan, ElementCount BestVF,
!SE.isKnownPredicate(CmpInst::ICMP_ULE, TripCount, C))
return;
- LLVMContext &Ctx = SE.getContext();
- auto *BOC =
- new VPInstruction(VPInstruction::BranchOnCond,
- {Plan.getOrAddLiveIn(ConstantInt::getTrue(Ctx))});
-
SmallVector<VPValue *> PossiblyDead(Term->operands());
Term->eraseFromParent();
+ VPBasicBlock *Header =
----------------
alexey-bataev wrote:
```suggestion
auto *Header =
```
https://github.com/llvm/llvm-project/pull/108378
More information about the llvm-commits
mailing list