commit | f52c64b115a872cd059549613c06e90e9954dc79 | [log] [tgz] |
---|---|---|
author | David Truby <[email protected]> | Thu Jul 06 14:32:30 2023 |
committer | David Truby <[email protected]> | Tue Jul 11 17:53:31 2023 |
tree | e0c8c3bd1f59c56064aea13decdf586cada67773 | |
parent | 7b64d761098fdbb426b27ca58a9dc8f31917dcba [diff] [blame] |
[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
diff --git a/flang/test/Lower/intrinsic-procedure-wrappers.f90 b/flang/test/Lower/intrinsic-procedure-wrappers.f90 index 08f77a0..210cfb4 100644 --- a/flang/test/Lower/intrinsic-procedure-wrappers.f90 +++ b/flang/test/Lower/intrinsic-procedure-wrappers.f90
@@ -7,4 +7,4 @@ foo = acos(x) end function -! CHECK: llvm.func internal @fir.acos.f32.f32 +! CHECK: llvm.func internal @fir.acos.contract.f32.f32