[PATCH] D74436: Change clang default to -ffp-model=precise

Melanie Blower via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 11 12:51:52 PST 2020


mibintc created this revision.
mibintc added reviewers: andrew.w.kaylor, lebedev.ri, rjmccall, sepavloff.
Herald added subscribers: kbarton, nemanjai.
Herald added a project: clang.

This patch establishes the default option for -ffp-model to select "precise".  Further, -ffp-model=precise also enables -ffp-contract=on (previously -ffp-model=precise enabled -ffp-contract=fast).  This is a follow-up to Andy Kaylor's comments in the llvm-dev discussion "Floating Point semantic modes".  From the same email thread, I put Andy's distillation of floating point options and floating point modes into UsersManual.rst


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74436

Files:
  clang/docs/UsersManual.rst
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/test/CodeGen/ppc-emmintrin.c
  clang/test/CodeGen/ppc-xmmintrin.c
  clang/test/Driver/fp-model.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74436.243959.patch
Type: text/x-patch
Size: 9886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200211/d4f0cc8a/attachment-0001.bin>


More information about the cfe-commits mailing list