diff options
| author | Mircea Trofin <mtrofin@google.com> | 2025-10-31 13:05:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-31 13:05:18 -0700 |
| commit | fe8ab75b408b4a252a1d0233c8ef585360b66490 (patch) | |
| tree | 67eb55a37925e8405c25e9eb7262ef38a23bbb4e /llvm/tools/llvm-diff/lib/DiffConsumer.h | |
| parent | 093c738d79a2391b0d78574b3b62cd55b733f2d7 (diff) | |
| download | llvm-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/tools/llvm-diff/lib/DiffConsumer.h')
0 files changed, 0 insertions, 0 deletions
