diff options
author | Asher Mancinelli <ashermancinelli@gmail.com> | 2025-04-15 08:02:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-15 08:02:11 -0700 |
commit | 9ab2dea61eee82faae8b85c99e889026e8b4f2c1 (patch) | |
tree | 29e3dfe2d1962fa7ca1056aef3f6abb43fbaf49b /llvm/lib/Support/ProgramStack.cpp | |
parent | f215a61891b0368d2d7e329bc994c9053dc3fac9 (diff) | |
download | llvm-9ab2dea61eee82faae8b85c99e889026e8b4f2c1.zip llvm-9ab2dea61eee82faae8b85c99e889026e8b4f2c1.tar.gz llvm-9ab2dea61eee82faae8b85c99e889026e8b4f2c1.tar.bz2 |
[mlir][math] powi with negative exponent should invert at the end (#135735)
Previously, an FPowI operation would invert the base *before* performing
a sequence of multiplications, but this led to discrepancies between
LLVM pow intrinsic folding and that coming from the math dialect.
See compiler-rt's version, which does the inverse at the end of the
calculation: compiler-rt/lib/builtins/powidf2.c
Diffstat (limited to 'llvm/lib/Support/ProgramStack.cpp')
0 files changed, 0 insertions, 0 deletions