[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.
parent
cb1b846e
Please register or sign in to comment