commit | 82a60d3da1a13b43f8ca474b6ff3b3d4778d706c | [log] [tgz] |
---|---|---|
author | Antonio Frighetto <me@antoniofrighetto.com> | Tue Jun 24 09:06:18 2025 +0200 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jun 24 00:13:18 2025 -0700 |
tree | 6843534daa7e3901b17de8cecae93eb5e369d7e9 | |
parent | bdf84123b1ef96f35767c1e95815d60d8c5ff702 [diff] |
[SimplifyCFG] Relax `cttz` cost check in `simplifySwitchOfPowersOfTwo` We should be able to allow `simplifySwitchOfPowersOfTwo` transform to take place, as, on recent X86 targets, the weighted latency-size appears to be 2. This favours computing trailing zeroes and indexing into a smaller value table, over generating a jump table with an indirect branch, which overall should be more efficient. GitOrigin-RevId: 1247fddf3676543837b71965c88f021072513c63