[llvm] [VPlan] Add VPlan-based addMinIterCheck, replace ILV for non-epilogue. (PR #153643)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 26 05:10:41 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");
----------------
fhahn wrote:
VPIRPhi is a sub-class of VPIRInstruction.
After VPExpandSCEV, there should only by VPInstructions, added by this patch
https://github.com/llvm/llvm-project/pull/153643
More information about the llvm-commits
mailing list