aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2025-11-05 12:02:33 -0800
committerGitHub <noreply@github.com>2025-11-05 12:02:33 -0800
commitf76c132230326a296c4fb8f7cb6c0fb6b943fadb (patch)
tree24c20c7baeab18500ccfa749f47b55faef0690c4 /clang/unittests/Format/FormatTestJava.cpp
parentb0ae054a568622982e7e623c354709a7463b152a (diff)
downloadllvm-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