llvm-project
00f5a1e3 - [SimplifyCFG] Extend `simplifySwitchOfPowersOfTwo` to reachable defaults

Commit
187 days ago
[SimplifyCFG] Extend `simplifySwitchOfPowersOfTwo` to reachable defaults Favour a `cttz`-indexed table lookup over an indirect jump table when the default switch case is reachable, by branching non-power-of-two inputs to the default case. Proofs: https://alive2.llvm.org/ce/z/HeRAtf.
Parents
Loading