[llvm] [VPlan] Use BlockFrequencyInfo in getPredBlockCostDivisor (PR #158690)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 10 10:19:10 PST 2025


================
@@ -5108,8 +5111,6 @@ InstructionCost LoopVectorizationCostModel::expectedCost(ElementCount VF) {
     // unconditionally executed. For the scalar case, we may not always execute
     // the predicated block, if it is an if-else block. Thus, scale the block's
     // cost by the probability of executing it.
-    // getPredBlockCostDivisor will return 1 for blocks that are only predicated
----------------
david-arm wrote:

Should this be deleted?

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


More information about the llvm-commits mailing list