[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
================
@@ -4555,9 +4556,7 @@ static VPInstruction *addResumePhiRecipeForInduction(
WideIV->getDebugLoc());
}
- auto *ResumePhiRecipe = ScalarPHBuilder.createScalarPhi(
- {EndValue, Start}, WideIV->getDebugLoc(), "bc.resume.val");
- return ResumePhiRecipe;
+ return EndValue;
}
void VPlanTransforms::addScalarResumePhis(
----------------
fhahn wrote:
Thanks, udpated to `updateScalarResumePhis`, as they are already connected, but we need to update their incoming values to properly account for widened inductions/recurrences
https://github.com/llvm/llvm-project/pull/166099
More information about the llvm-commits
mailing list