[llvm] [VPlan] Return invalid cost if any skeleton block has invalid costs. (PR #151940)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 4 11:44:00 PDT 2025


================
@@ -1072,9 +1072,13 @@ InstructionCost VPlan::cost(ElementCount VF, VPCostContext &Ctx) {
   // blocks, like the preheader or middle blocks.
   InstructionCost Cost = getVectorLoopRegion()->cost(VF, Ctx);
----------------
ayalz wrote:

Better bail out first if invalid?

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


More information about the llvm-commits mailing list