Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Fix spurious overflow warning folding exponentiation by integ…
…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 llvm#88151.
- Loading branch information