[all-commits] [llvm/llvm-project] 31505c: [flang] Fix spurious overflow warning folding expo...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Apr 22 14:39:51 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 31505c4f6b977c2ccc785de29a047a31563e5c90
https://github.com/llvm/llvm-project/commit/31505c4f6b977c2ccc785de29a047a31563e5c90
Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
Date: 2024-04-22 (Mon, 22 Apr 2024)
Changed paths:
M flang/lib/Evaluate/int-power.h
Log Message:
-----------
[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.
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