[PATCH] D72675: [Clang][Driver] Fix -ffast-math/-ffp-contract interaction
Andy Kaylor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 14:11:42 PST 2020
andrew.w.kaylor added a comment.
In D72675#1839492 <https://reviews.llvm.org/D72675#1839492>, @wristow wrote:
> 1. Should we enable FMA "by default" at (for example) '-O2'?
We recently introduced a new option "-ffp-model=[precise|fast|strict], which is supposed to serve as an umbrella option for the most common combination of options. I think our default behavior should be equivalent to -ffp-model=precise, which enables contraction. It currently seems to enable -ffp-contract=fast in the precise model (https://godbolt.org/z/c6w8mJ). I'm not sure that's what it should be doing, but whatever the precise model does should be our default.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72675/new/
https://reviews.llvm.org/D72675
More information about the llvm-commits
mailing list