[llvm] [VPlan] Create resume phis in scalar preheader early. (NFC) (PR #166099)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 21 13:35:01 PST 2025


================
@@ -4527,9 +4527,10 @@ void VPlanTransforms::addBranchWeightToMiddleTerminator(
 /// Create and return a ResumePhi for \p WideIV, unless it is truncated. If the
 /// induction recipe is not canonical, creates a VPDerivedIVRecipe to compute
 /// the end value of the induction.
-static VPInstruction *addResumePhiRecipeForInduction(
-    VPWidenInductionRecipe *WideIV, VPBuilder &VectorPHBuilder,
-    VPBuilder &ScalarPHBuilder, VPTypeAnalysis &TypeInfo, VPValue *VectorTC) {
+static VPValue *addResumePhiRecipeForInduction(VPWidenInductionRecipe *WideIV,
----------------
fhahn wrote:

Updated to `tryToComputeEndValueForInduction` and adjusted comment above, thanks

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


More information about the llvm-commits mailing list