[PATCH] D74436: Change clang option -ffp-model=precise to select ffp-contract=on
Andy Kaylor via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 14 10:12:41 PST 2020
andrew.w.kaylor added a subscriber: scanon.
andrew.w.kaylor added a comment.
In D74436#1875320 <https://reviews.llvm.org/D74436#1875320>, @mibintc wrote:
> However you are right we don't want the frontend to create FMA when optimizations are disabled -O0
I've been discussing this with @scanon on the cfe-dev mailing list, and he has convinced me that we should create FMA options at -O0 if the fp-contract setting is "on" -- including when it is on by default. The reasoning that persuaded me was, "preserving FMA formation at O0 _helps_ debuggability, because it means that numerical behavior is more likely to match what a user observed at Os, allowing them to debug the problem."
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