[llvm] [VPlan] Replace ExtractLast(Elem|LanePerPart) with ExtractLast(Lane/Part) (PR #164124)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 7 05:00:27 PST 2025
================
@@ -116,14 +116,18 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
return inferScalarType(R->getOperand(1));
case VPInstruction::FirstActiveLane:
return Type::getIntNTy(Ctx, 64);
- case VPInstruction::ExtractLastElement:
- case VPInstruction::ExtractLastLanePerPart:
+ case VPInstruction::ExtractLastLane:
----------------
fhahn wrote:
`inferScalarType` will always infer a scalar type, so the code below casting to vector type is a no-op.
https://github.com/llvm/llvm-project/pull/164124
More information about the llvm-commits
mailing list