[llvm] [VPlan] Replace ExtractLast(Elem|LanePerPart) with ExtractLast(Lane/Part) (PR #164124)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 27 21:20:52 PDT 2025


================
@@ -1159,7 +1158,7 @@ InstructionCost VPInstruction::computeCost(ElementCount VF,
                                   I32Ty, {Arg0Ty, I32Ty, I1Ty});
     return Ctx.TTI.getIntrinsicInstrCost(Attrs, Ctx.CostKind);
   }
-  case VPInstruction::ExtractLastElement: {
+  case VPInstruction::ExtractLastLane: {
----------------
fhahn wrote:

Yep, can update as follow-up, thanks. I think we should remove the ExtractLastLane for plans with just the scalar VF

https://github.com/llvm/llvm-project/pull/164124


More information about the llvm-commits mailing list