[all-commits] [llvm/llvm-project] 0d9c02: [InstCombine] Make `takeLog2` visible in all of In...
goldsteinn via All-commits
all-commits at lists.llvm.org
Fri Jan 10 14:22:20 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0d9c027ad7fa36a607386e24d4928c9046f6ff56
https://github.com/llvm/llvm-project/commit/0d9c027ad7fa36a607386e24d4928c9046f6ff56
Author: Noah Goldstein <goldstein.w.n at gmail.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
Log Message:
-----------
[InstCombine] Make `takeLog2` visible in all of InstCombine; NFC
Also add `tryGetLog2` helper that encapsulates the common pattern:
```
if (takeLog2(..., /*DoFold=*/false)) {
Value * Log2 = takeLog2(..., /*DoFold=*/true);
...
}
```
Closes #122498
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