[all-commits] [llvm/llvm-project] f52c64: [flang] Add fastmath flags to localBuilder in Intr...

David Truby via All-commits all-commits at lists.llvm.org
Tue Jul 11 11:04:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f52c64b115a872cd059549613c06e90e9954dc79
      https://github.com/llvm/llvm-project/commit/f52c64b115a872cd059549613c06e90e9954dc79
  Author: David Truby <david at truby.dev>
  Date:   2023-07-11 (Tue, 11 Jul 2023)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/FIRBuilder.h
    M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
    M flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
    M flang/test/Lower/Intrinsics/exp.f90
    M flang/test/Lower/Intrinsics/log.f90
    M flang/test/Lower/Intrinsics/math-runtime-options.f90
    M flang/test/Lower/array-expression-slice-1.f90
    M flang/test/Lower/dummy-procedure.f90
    M flang/test/Lower/intrinsic-procedure-wrappers.f90
    M flang/test/Lower/sqrt.f90
    M flang/test/Lower/trigonometric-intrinsics.f90

  Log Message:
  -----------
  [flang] Add fastmath flags to localBuilder in IntrinsicCall

Currently the local builder used in IntrinsicCall doesn't have the
fastmath flags passed to it. This results in the fastmath attribute
not being added to certain runtime calls. This patch simply forwards
the fastmath flags from the parent builder.

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




More information about the All-commits mailing list