llvm-project
f76c1322 - [SimplifyCFG] Fix weight calculation for `simplifySwitchOfPowersOfTwo` (#165956)

Commit
1 day ago
[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
Author
Parents
Loading