[llvm] [VPlan] Use BlockFrequencyInfo in getPredBlockCostDivisor (PR #158690)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 19 06:04:30 PST 2025
================
@@ -2875,6 +2866,18 @@ bool LoopVectorizationCostModel::isPredicatedInst(Instruction *I) const {
}
}
+unsigned LoopVectorizationCostModel::getPredBlockCostDivisor(
+ TargetTransformInfo::TargetCostKind CostKind, const BasicBlock *BB) const {
+ if (CostKind == TTI::TCK_CodeSize)
----------------
lukel97 wrote:
Turns out that this check prevents the need to compute BlockFrequencyInfo in a good few changes and helps with compile time so I've added it back in f2b5fce096c35271ddc47f70230e0435f3569d24
https://github.com/llvm/llvm-project/pull/158690
More information about the llvm-commits
mailing list