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 fc05512 commit 44b24f4Copy full SHA for 44b24f4
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1416,7 +1416,10 @@ static void narrowToSingleScalarRecipes(VPlan &Plan) {
1416
return true;
1417
1418
if (auto *VPI = dyn_cast<VPInstruction>(U))
1419
- if (VPI->isVectorToScalar() || VPI->isSingleScalar())
+ if (VPI->isSingleScalar() ||
1420
+ VPI->getOpcode() == VPInstruction::ExtractLastElement ||
1421
+ VPI->getOpcode() == VPInstruction::ExtractLastLanePerPart ||
1422
+ VPI->getOpcode() == VPInstruction::ExtractPenultimateElement)
1423
1424
1425
return U->usesScalars(RepOrWidenR);
0 commit comments