Mircea Trofin e63f0f50fa
[SLU][profcheck] Estimate branch weights in partial unswitch cases (#164035)
In the case of a partial unswitch, we take the invariant part of an expression consisting of either conjunctions or disjunctions, and hoist it out of the loop, conditioning a branch on it (==the invariant part). We can't correctly calculate the branch probability of this new branch, but can use the probability of the existing branch as a bound. That would preserve block frequencies better than allowing for the default, static (50-50) probability for that branch.

Issue #147390
2025-10-30 10:37:15 -07:00
..