[llvm] [LoopVectorize] Use CodeSize as the cost kind for minsize (PR #124119)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 06:44:40 PST 2025
================
@@ -5506,7 +5515,8 @@ InstructionCost LoopVectorizationCostModel::computePredInstDiscount(
}
// Scale the total scalar cost by block probability.
- ScalarCost /= getReciprocalPredBlockProb();
+ if (CostKind != TTI::TCK_CodeSize)
----------------
fhahn wrote:
It looks like the checks here and below may not be covered by the existing tests. Would be good to add test coverage for some of them, if possible.
https://github.com/llvm/llvm-project/pull/124119
More information about the llvm-commits
mailing list