Mircea Trofin f76c132230
[SimplifyCFG] Fix weight calculation for simplifySwitchOfPowersOfTwo (#165956)
Continued from #165804

This maintains the BFI of the default branch. Originally `10/63`​, post-pass, it ends up being `5/63 + 58/63 * 5/58`​(first term is from `PROF`​, second is the probability of going to the switch lookup times the probability, there, of taking the default branch)

Issue #147390
2025-11-05 12:02:33 -08:00
..