Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Use naive algorithm for folding complex division when it does…
…n't over/underflow f18 unconditionally uses a scaling algorithm for complex/complex division that avoids needless overflows and underflows when computing the sum of the squares of the components of the denominator -- but testing has shown some 1 ULP differences relative to the naive calculation due to the extra operations and roundings. So use the scaling algorithm only when the naive calculation actually would overflow or underflow. Differential Revision: https://reviews.llvm.org/D132164
- Loading branch information