[flang] Avoid needless overflow when folding NORM2 (#67499)
The code that folds the relatively new NORM2 intrinsic function can produce overflow in cases where it's not warranted. Rearrange to NORM2 = M * SQRT((A(:)/M)**2) where M is MAXVAL(ABS(A)).
parent
39f4ec58
Please register or sign in to comment