[llvm] [VPlan] Don't apply predication discount to non-originally-predicated blocks (PR #160449)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 2 00:43:02 PDT 2025


================
@@ -366,6 +351,10 @@ struct VPCostContext {
   /// has already been pre-computed.
   bool skipCostComputation(Instruction *UI, bool IsVector) const;
 
+  /// \returns how much the cost of a predicated block should be divided by.
----------------
fhahn wrote:

```suggestion
  /// \returns how much the cost of a predicated block should be divided by. Forwards to LoopVectorizationCostModel::getPredBlockCostDivisor.
```

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


More information about the llvm-commits mailing list