[all-commits] [llvm/llvm-project] 7fac1a: Set the LLVM FP optimization flags conservatively.
John McCall via All-commits
all-commits at lists.llvm.org
Thu Jun 11 15:17:08 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7fac1acc617113b7a3276ee0f0664bedca978292
https://github.com/llvm/llvm-project/commit/7fac1acc617113b7a3276ee0f0664bedca978292
Author: John McCall <rjmccall at apple.com>
Date: 2020-06-11 (Thu, 11 Jun 2020)
Changed paths:
M clang/include/clang/Basic/LangOptions.h
M clang/lib/CodeGen/CGExprScalar.cpp
M clang/lib/CodeGen/CodeGenFunction.cpp
M clang/lib/CodeGen/CodeGenFunction.h
A clang/test/CodeGen/fp-function-attrs.cpp
Log Message:
-----------
Set the LLVM FP optimization flags conservatively.
Functions can have local pragmas that override the global settings.
We set the flags eagerly based on global settings, but if we emit
an expression under the influence of a pragma, we clear the
appropriate flags from the function.
In order to avoid doing a ton of redundant work whenever we emit
an FP expression, configure the IRBuilder to default to global
settings, and only reconfigure it when we see an FP expression
that's not using the global settings.
Patch by Michele Scandale!
https://reviews.llvm.org/D80462
More information about the All-commits
mailing list