[llvm] [VPlan] Remove ExtractLastLane for plans with scalar VFs. (PR #171145)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 11 06:18:13 PST 2025


================
@@ -383,7 +382,10 @@ void UnrollState::unrollBlock(VPBlockBase *VPB) {
         I->replaceAllUsesWith(getValueForPart(Op0, PartIdx));
         continue;
       }
-      // For vector VF, always extract from the last part.
----------------
ayalz wrote:

Worth retaining the comment, perhaps emphasizing that
```// For vector VF, the penultimate element is always extracted from the last part.```

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


More information about the llvm-commits mailing list