aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/OptimizedStructLayoutTest.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2025-10-31 13:05:18 -0700
committerGitHub <noreply@github.com>2025-10-31 13:05:18 -0700
commitfe8ab75b408b4a252a1d0233c8ef585360b66490 (patch)
tree67eb55a37925e8405c25e9eb7262ef38a23bbb4e /llvm/unittests/Support/OptimizedStructLayoutTest.cpp
parent093c738d79a2391b0d78574b3b62cd55b733f2d7 (diff)
downloadllvm-fe8ab75b408b4a252a1d0233c8ef585360b66490.zip
llvm-fe8ab75b408b4a252a1d0233c8ef585360b66490.tar.gz
llvm-fe8ab75b408b4a252a1d0233c8ef585360b66490.tar.bz2
[SimplifyCFG] Propagate profile in `simplifySwitchOfPowersOfTwo` (#165804)
`simplifySwitchOfPowersOfTwo`​ converts (when applicable, see `00f5a1e30b`​) a switch to a conditional branch. Its false case goes to the `default`​ target of the former switch, and the true case goes to a BB performing a `cttz`​. We can calculate the branch weights from the branch weights of the old switch. Issue #147390
Diffstat (limited to 'llvm/unittests/Support/OptimizedStructLayoutTest.cpp')
0 files changed, 0 insertions, 0 deletions