This is an archive of the discontinued LLVM Phabricator instance.

[flang] evaluate: Fold SQRT, HYPOT, & CABS
ClosedPublic

Authored by klausler on Sep 3 2021, 11:13 AM.

Details

Summary

Implement IEEE Real::SQRT() operation, then use it to
also implement Real::HYPOT(), which can then be used directly
to implement Complex::ABS().

Diff Detail