[llvm] [LoopUnroll] Relax fixed non-latch exit probability threshold for runtime multi-exit loop unrolling (PR #224325)
Marek Sedláček via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 03:03:27 PDT 2026
================
@@ -585,6 +590,14 @@ static bool canProfitablyRuntimeUnrollMultiExitLoop(
// If BranchProbability could not be extracted (returns unknown), then
// don't return and do the check for deopt block.
if (!BranchProb.isUnknown()) {
+ // Special case for linear scan loop with trip count < ~100, which will
+ // not pass the P < 1/100 check bellow.
----------------
mark-sed wrote:
It's removed now.
https://github.com/llvm/llvm-project/pull/224325
More information about the llvm-commits
mailing list