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 4e05d70 commit 65deac0Copy full SHA for 65deac0
llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
@@ -120,12 +120,8 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
120
case VPInstruction::LastActiveLane:
121
return Type::getIntNTy(Ctx, 64);
122
case VPInstruction::ExtractLastLane:
123
- case VPInstruction::ExtractPenultimateElement: {
124
- Type *BaseTy = inferScalarType(R->getOperand(0));
125
- if (auto *VecTy = dyn_cast<VectorType>(BaseTy))
126
- return VecTy->getElementType();
127
- return BaseTy;
128
- }
+ case VPInstruction::ExtractPenultimateElement:
+ return inferScalarType(R->getOperand(0));
129
case VPInstruction::ExtractLastPart:
130
return inferScalarType(R->getOperand(0));
131
case VPInstruction::LogicalAnd:
0 commit comments