[llvm] [VPlan] Add VPlan-based addMinIterCheck, replace ILV for non-epilogue. (PR #153643)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 24 02:04:45 PDT 2025
================
@@ -3507,8 +3508,19 @@ VPlanTransforms::expandSCEVs(VPlan &Plan, ScalarEvolution &SE) {
ExpSCEV->replaceAllUsesWith(Exp);
if (Plan.getTripCount() == ExpSCEV)
Plan.resetTripCount(Exp);
+
+ InsertPt = std::next(ExpSCEV->getIterator());
ExpSCEV->eraseFromParent();
}
+ assert(none_of(*Entry, IsaPred<VPExpandSCEVRecipe>) &&
+ "VPExpandSCEVRecipes must be be at the beginning of the entry block, "
+ "after any VPIRInstructions");
----------------
ayalz wrote:
```suggestion
"after any VPIRPhi and VPIRInstructions");
```
what else is there in the entry block?
https://github.com/llvm/llvm-project/pull/153643
More information about the llvm-commits
mailing list