[all-commits] [llvm/llvm-project] 1247fd: [SimplifyCFG] Relax `cttz` cost check in `simplify...
Antonio Frighetto via All-commits
all-commits at lists.llvm.org
Tue Jun 24 00:09:55 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1247fddf3676543837b71965c88f021072513c63
https://github.com/llvm/llvm-project/commit/1247fddf3676543837b71965c88f021072513c63
Author: Antonio Frighetto <me at antoniofrighetto.com>
Date: 2025-06-24 (Tue, 24 Jun 2025)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
A llvm/test/Transforms/SimplifyCFG/X86/switch-of-powers-of-two.ll
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list