[llvm] [VPlan] Remove ExtractLastLane for plans with scalar VFs. (PR #171145)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 12 13:52:17 PST 2025
================
@@ -371,10 +371,9 @@ void UnrollState::unrollBlock(VPBlockBase *VPB) {
continue;
}
- if (match(&R, m_ExtractLastLaneOfLastPart(m_VPValue(Op0))) ||
- match(&R, m_ExtractPenultimateElement(m_VPValue(Op0)))) {
- addUniformForAllParts(cast<VPSingleDefRecipe>(&R));
- if (Plan.hasScalarVFOnly()) {
+ if (Plan.hasScalarVFOnly()) {
+ if (match(&R, m_ExtractLastPart(m_VPValue(Op0))) ||
+ match(&R, m_ExtractPenultimateElement(m_VPValue(Op0)))) {
----------------
fhahn wrote:
I am not sure, the only difference is the index to extract from?
https://github.com/llvm/llvm-project/pull/171145
More information about the llvm-commits
mailing list