diff options
author | Balaji V. Iyer <bviyer@gmail.com> | 2023-08-25 15:15:28 -0700 |
---|---|---|
committer | Rob Suderman <suderman@google.com> | 2023-08-25 15:35:05 -0700 |
commit | f66e4bd67adf0b0aaecd94154c38f02253bf7190 (patch) | |
tree | ab345938fe1c7eab0ea9c767ba43a05ede0dd757 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | f8838f85e13e6030426183dd58db259b17e8e7e8 (diff) | |
download | llvm-f66e4bd67adf0b0aaecd94154c38f02253bf7190.zip llvm-f66e4bd67adf0b0aaecd94154c38f02253bf7190.tar.gz llvm-f66e4bd67adf0b0aaecd94154c38f02253bf7190.tar.bz2 |
[mlir][math] Modify math.powf to handle negative bases.
Powf expansion currently returns NaN when the base is negative.
This is because taking natural log of a negative number gives
NaN. This patch will square the base and half the exponent, thereby
getting around the negative base problem.
Reviewed By: rsuderman
Differential Revision: https://reviews.llvm.org/D158797
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions