[llvm] [VPlan] Replace ExtractLast(Elem|LanePerPart) with ExtractLast(Lane/Part) (PR #164124)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 28 03:37:17 PDT 2025
================
@@ -8821,7 +8821,7 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
if (FinalReductionResult == U || Parent->getParent())
continue;
U->replaceUsesOfWith(OrigExitingVPV, FinalReductionResult);
- if (match(U, m_ExtractLastElement(m_VPValue())))
+ if (match(U, m_ExtractFinalLane(m_VPValue())))
cast<VPInstruction>(U)->replaceAllUsesWith(FinalReductionResult);
----------------
ayalz wrote:
Would be good to clarify somewhere our distinction between "Last" and "Final".
("Final" also appears here in `FinalReductionResult`)
https://github.com/llvm/llvm-project/pull/164124
More information about the llvm-commits
mailing list