[PATCH] D80462: Fix floating point math function attributes definition.

Michele Scandale via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 22 17:42:18 PDT 2020


michele.scandale created this revision.
michele.scandale added reviewers: rjmccall, mibintc.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

With the support for changing the state of floating point optimizations
within a code block, we need to make sure that the function attributes
related to floating point math optimization are set in a conservative
way w.r.t. the body of the function to prevent illegal transformations
in the backends where such attributes are consumed.

Depends on D80315 <https://reviews.llvm.org/D80315>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80462

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/CodeGen/CGExprScalar.cpp
  clang/lib/CodeGen/CodeGenAction.cpp
  clang/lib/CodeGen/CodeGenFunction.cpp
  clang/lib/CodeGen/CodeGenFunction.h
  clang/test/CodeGen/fp-function-attrs.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80462.265825.patch
Type: text/x-patch
Size: 13012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200523/4758e4f2/attachment-0001.bin>


More information about the cfe-commits mailing list