[llvm] [LV] Always include middle block cost in isOutsideLoopWorkProfitable. (PR #171102)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 9 05:36:36 PST 2025
================
@@ -1104,6 +1104,10 @@ InstructionCost VPInstruction::computeCost(ElementCount VF,
return Ctx.TTI.getIntrinsicInstrCost(Attrs, Ctx.CostKind);
}
case VPInstruction::ExtractLastLane: {
+ // TODO: ExtractLastLane for scalar VF is a no-op. Remove before ::execute.
+ if (VF.isScalar())
+ return 0;
----------------
fhahn wrote:
This is gone now
https://github.com/llvm/llvm-project/pull/171102
More information about the llvm-commits
mailing list