[llvm] [VPlan] Add FinalIVValue VPInstruction. (PR #175651)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 15 07:03:24 PST 2026
================
@@ -700,6 +700,23 @@ void VPlanTransforms::createHeaderPhiRecipes(
VPHeaderPHIRecipe *HeaderPhiR = CreateHeaderPhiRecipe(PhiR);
HeaderPhiR->insertBefore(PhiR);
PhiR->replaceAllUsesWith(HeaderPhiR);
+ if (isa<VPWidenIntOrFpInductionRecipe>(HeaderPhiR)) {
+ for (VPUser *U : PhiR->getOperand(1)->users()) {
+ if (!match(U, m_ExtractLastPart(m_VPValue())))
+ continue;
+ auto *ExtractLastPart = cast<VPInstruction>(U);
+ if (!match(ExtractLastPart->getSingleUser(),
+ m_ExtractLastLane(m_VPValue())))
+ continue;
----------------
lukel97 wrote:
Do the original extract lane + extract part get folded away or something that prevent them from being picked up in optimizeLatchExitInductionUser?
https://github.com/llvm/llvm-project/pull/175651
More information about the llvm-commits
mailing list