[PATCH] D46135: [Driver, CodeGen] add options to enable/disable an FP cast optimization

Sanjay Patel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 26 14:47:23 PDT 2018


spatel updated this revision to Diff 144200.
spatel added a comment.

Patch updated:

1. Improve the documentation language - more suggestions welcome!
2. Change the default setting so the work-around is 'off' (ie, by default assume source is compliant and optimize accordingly).
3. Remove the 'no' version of the flag. Given the change in the default, this seems more natural to me, and it simplifies the patch/tests...but I might have been too pessimistic before and this is too optimistic? Let me know...


https://reviews.llvm.org/D46135

Files:
  docs/UsersManual.rst
  include/clang/Driver/Options.td
  include/clang/Frontend/CodeGenOptions.def
  lib/CodeGen/CGCall.cpp
  lib/Driver/ToolChains/Clang.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGen/no-junk-ftrunc.c
  test/Driver/fast-math.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46135.144200.patch
Type: text/x-patch
Size: 5674 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180426/b101f511/attachment.bin>


More information about the cfe-commits mailing list