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 1a5a728 commit 733f4b5Copy full SHA for 733f4b5
llvm/lib/Transforms/Vectorize/VPlanUnroll.cpp
@@ -344,8 +344,8 @@ void UnrollState::unrollBlock(VPBlockBase *VPB) {
344
addUniformForAllParts(cast<VPSingleDefRecipe>(&R));
345
if (Plan.hasScalarVFOnly()) {
346
auto *I = cast<VPInstruction>(&R);
347
- // Extracting from end with VF = 1 implies retrieving retrieving the
348
- // last or penultimate scalar part (UF-1 or UF-2).
+ // Extracting from end with VF = 1 implies retrieving the last or
+ // penultimate scalar part (UF-1 or UF-2).
349
unsigned Offset =
350
I->getOpcode() == VPInstruction::ExtractLastElement ? 1 : 2;
351
I->replaceAllUsesWith(getValueForPart(Op0, UF - Offset));
0 commit comments