[all-commits] [llvm/llvm-project] 3318a7: [InstCombine] Fold `(ct{t, l}z Pow2)` -> `Log2(Pow2...
goldsteinn via All-commits
all-commits at lists.llvm.org
Mon Jan 13 07:38:32 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3318a7248ae464af0abd0bea5515fa58c962b890
https://github.com/llvm/llvm-project/commit/3318a7248ae464af0abd0bea5515fa58c962b890
Author: goldsteinn <35538541+goldsteinn at users.noreply.github.com>
Date: 2025-01-13 (Mon, 13 Jan 2025)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
M llvm/test/Transforms/InstCombine/cttz.ll
Log Message:
-----------
[InstCombine] Fold `(ct{t,l}z Pow2)` -> `Log2(Pow2)` (#122620)
- **[InstCombine] Add tests for folding `(ct{t,l}z Pow2)`; NFC**
- **[InstCombine] Fold `(ct{t,l}z Pow2)` -> `Log2(Pow2)`**
Do so we can find `Log2(Pow2)` for "free" with `takeLog2`
https://alive2.llvm.org/ce/z/CL77fo
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