[all-commits] [llvm/llvm-project] c9e963: [flang] evaluate: Fold SQRT, HYPOT, & CABS

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Sep 7 10:33:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c9e9635ffef781c32a839a77d122d7930edfc9b2
      https://github.com/llvm/llvm-project/commit/c9e9635ffef781c32a839a77d122d7930edfc9b2
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-09-07 (Tue, 07 Sep 2021)

  Changed paths:
    M flang/include/flang/Evaluate/complex.h
    M flang/include/flang/Evaluate/real.h
    M flang/lib/Evaluate/fold-real.cpp
    M flang/lib/Evaluate/intrinsics-library.cpp
    M flang/lib/Evaluate/real.cpp
    A flang/test/Evaluate/folding28.f90

  Log Message:
  -----------
  [flang] evaluate: Fold SQRT, HYPOT, & CABS

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

Differential Revision: https://reviews.llvm.org/D109250




More information about the All-commits mailing list