[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:21 PDT 2025
================
@@ -4526,9 +4522,11 @@ void VPlanTransforms::addExitUsersForFirstOrderRecurrences(VPlan &Plan,
Range))
return;
VPValue *PenultimateElement = MiddleBuilder.createNaryOp(
- VPInstruction::ExtractPenultimateElement, {FOR->getBackedgeValue()},
+ VPInstruction::ExtractPenultimateElement,
+ MiddleBuilder.createNaryOp(VPInstruction::ExtractLastPart,
----------------
ayalz wrote:
Better continue to feed ExtractPenultimateElement with all parts, having the unroller select the last or penultimate part, than filtering the last part here?
https://github.com/llvm/llvm-project/pull/164124
More information about the llvm-commits
mailing list