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 b6a0834 commit ae3e3c4Copy full SHA for ae3e3c4
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -552,8 +552,9 @@ Value *VPInstruction::generate(VPTransformState &State) {
552
case Instruction::ExtractElement: {
553
assert(State.VF.isVector() && "Only extract elements from vectors");
554
if (getOperand(1)->isLiveIn()) {
555
- unsigned IdxToExtract = cast<ConstantInt>(getOperand(1)->getLiveInIRValue())->getZExtValue();
556
- return State.get(getOperand(0), VPLane(IdxToExtract));
+ unsigned IdxToExtract =
+ cast<ConstantInt>(getOperand(1)->getLiveInIRValue())->getZExtValue();
557
+ return State.get(getOperand(0), VPLane(IdxToExtract));
558
}
559
Value *Vec = State.get(getOperand(0));
560
Value *Idx = State.get(getOperand(1), /*IsScalar=*/true);
0 commit comments