diff options
| author | Mircea Trofin <mtrofin@google.com> | 2025-11-05 12:02:33 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-05 12:02:33 -0800 |
| commit | f76c132230326a296c4fb8f7cb6c0fb6b943fadb (patch) | |
| tree | 24c20c7baeab18500ccfa749f47b55faef0690c4 /clang/unittests/Format/FormatTestJava.cpp | |
| parent | b0ae054a568622982e7e623c354709a7463b152a (diff) | |
| download | llvm-f76c132230326a296c4fb8f7cb6c0fb6b943fadb.zip llvm-f76c132230326a296c4fb8f7cb6c0fb6b943fadb.tar.gz llvm-f76c132230326a296c4fb8f7cb6c0fb6b943fadb.tar.bz2 | |
[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
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions
