[PATCH] D74436: Change clang option -ffp-model=precise to select ffp-contract=on

Nemanja Ivanovic via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 13 15:09:55 PST 2020


nemanjai added a comment.

> You're right, -O0 shouldn't generate FMA. I'm preparing to revert this now -- just verifying the build.

Perhaps this should be
`off` with no optimization
`on` with `-O1/-O2/-O3/-Os/-Oz`
`fast` with fast math

Just a suggestion, I'm not sure whether that would be the best breakdown. Perhaps we can also see what the defaults are for GCC and unify with those?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74436/new/

https://reviews.llvm.org/D74436





More information about the cfe-commits mailing list