diff options
author | Peter Klausler <35819229+klausler@users.noreply.github.com> | 2024-04-22 14:39:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 14:39:30 -0700 |
commit | 31505c4f6b977c2ccc785de29a047a31563e5c90 (patch) | |
tree | f10d7dd0f08ed2cb339826a716f6864cab79659b /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h | |
parent | cb1b846eda2b18955cad28742350e4a73f166c07 (diff) | |
download | llvm-31505c4f6b977c2ccc785de29a047a31563e5c90.zip llvm-31505c4f6b977c2ccc785de29a047a31563e5c90.tar.gz llvm-31505c4f6b977c2ccc785de29a047a31563e5c90.tar.bz2 |
[flang] Fix spurious overflow warning folding exponentiation by integ… (#88188)
…er powers
The code that folds exponentiation by an integer power can report a
spurious overflow warning because it calculates one last unnecessary
square of the base value. 10.**(+/-32) exposes the problem -- the value
of 10.**64 is calculated but not needed. Rearrange the implementation to
only calculate squares that are necessary.
Fixes https://github.com/llvm/llvm-project/issues/88151.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions