[all-commits] [llvm/llvm-project] 8bd544: [flang] Use libm over pgmath for complex number in...

David Truby via All-commits all-commits at lists.llvm.org
Wed Sep 28 06:27:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8bd54409b15f45a757fe82ce0872234234a35c9b
      https://github.com/llvm/llvm-project/commit/8bd54409b15f45a757fe82ce0872234234a35c9b
  Author: David Truby <David.Truby at arm.com>
  Date:   2022-09-28 (Wed, 28 Sep 2022)

  Changed paths:
    M flang/lib/Lower/IntrinsicCall.cpp
    M flang/test/Lower/Intrinsics/abs.f90
    M flang/test/Lower/Intrinsics/acos.f90
    M flang/test/Lower/Intrinsics/acosh.f90
    M flang/test/Lower/Intrinsics/asin.f90
    M flang/test/Lower/Intrinsics/asinh.f90
    M flang/test/Lower/Intrinsics/atanh.f90
    M flang/test/Lower/Intrinsics/exp.f90
    M flang/test/Lower/Intrinsics/log.f90
    M flang/test/Lower/Intrinsics/missing-math-runtime.f90
    M flang/test/Lower/math-lowering.f90
    M flang/test/Lower/power-operator.f90
    M flang/test/Lower/sqrt.f90
    M flang/test/Lower/trigonometric-intrinsics.f90

  Log Message:
  -----------
  [flang] Use libm over pgmath for complex number intrinsics

This patch changes the handling of complex number intrinsics that
have C libm equivalents to call into those instead of calling the
external pgmath library.

Currently complex numbers to integer powers are excluded as libm
has no powi equivalent function.

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




More information about the All-commits mailing list