llvm-project
fe8ab75b - [SimplifyCFG] Propagate profile in `simplifySwitchOfPowersOfTwo` (#165804)

Commit
46 days ago
[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
Author
Parents
Loading