[llvm] InstCombine: Try to use exp10 intrinsic instead of libcall (PR #92287)

Mike Hommey via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 03:04:46 PDT 2024


glandium wrote:

Here's a reproducer
```
long n, x;
void foo() { x = __builtin_powl(10, n); }
```
Build with `clang -O1 -o libfoo.dylib -shared foo.c --target=aarch64-apple-darwin -isysroot /path/to/MacOSX.sdk/`

https://github.com/llvm/llvm-project/pull/92287


More information about the llvm-commits mailing list