[PATCH] D121122: Set FLT_EVAL_METHOD to -1 when fast-math is enabled.
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 10 10:59:26 PST 2022
aaron.ballman added inline comments.
================
Comment at: clang/lib/Sema/Sema.cpp:258
+ // Fast-math is enabled.
+ if (getLangOpts().AllowFPReassoc || getLangOpts().AllowRecip)
+ PP.setCurrentFPEvalMethod(SourceLocation(),
----------------
Shouldn't this be looking at `getLangOpts().FastMath`?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121122/new/
https://reviews.llvm.org/D121122
More information about the cfe-commits
mailing list