We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 434b246 commit 4b0b896Copy full SHA for 4b0b896
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1423,7 +1423,10 @@ static void narrowToSingleScalarRecipes(VPlan &Plan) {
1423
return true;
1424
1425
if (auto *VPI = dyn_cast<VPInstruction>(U))
1426
- if (VPI->isVectorToScalar() || VPI->isSingleScalar())
+ if (VPI->isSingleScalar() ||
1427
+ VPI->getOpcode() == VPInstruction::ExtractLastElement ||
1428
+ VPI->getOpcode() == VPInstruction::ExtractLastLanePerPart ||
1429
+ VPI->getOpcode() == VPInstruction::ExtractPenultimateElement)
1430
1431
1432
return U->usesScalars(RepOrWidenR);
0 commit comments