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 9005774 commit ac735e7Copy full SHA for ac735e7
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1424,7 +1424,10 @@ static void narrowToSingleScalarRecipes(VPlan &Plan) {
1424
return true;
1425
1426
if (auto *VPI = dyn_cast<VPInstruction>(U))
1427
- if (VPI->isVectorToScalar() || VPI->isSingleScalar())
+ if (VPI->isSingleScalar() ||
1428
+ VPI->getOpcode() == VPInstruction::ExtractLastElement ||
1429
+ VPI->getOpcode() == VPInstruction::ExtractLastLanePerPart ||
1430
+ VPI->getOpcode() == VPInstruction::ExtractPenultimateElement)
1431
1432
1433
return U->usesScalars(RepOrWidenR);
0 commit comments