[clang] Clean up denormal handling with -ffp-model, -ffast-math, etc. (PR #89477)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 25 12:14:39 PDT 2024
================
@@ -1314,11 +1314,17 @@ bool ToolChain::isFastMathRuntimeAvailable(const ArgList &Args,
Arg *A =
Args.getLastArg(options::OPT_ffast_math, options::OPT_fno_fast_math,
options::OPT_funsafe_math_optimizations,
- options::OPT_fno_unsafe_math_optimizations);
+ options::OPT_fno_unsafe_math_optimizations,
+ options::OPT_ffp_model_EQ);
if (!A || A->getOption().getID() == options::OPT_fno_fast_math ||
A->getOption().getID() == options::OPT_fno_unsafe_math_optimizations)
return false;
+ if (A && A->getOption().getID() == options::OPT_ffp_model_EQ) {
+ StringRef Model = A->getValue();
----------------
andykaylor wrote:
I hope to add -ffp-model=aggressive soon, with will require a second use of Model here.
https://github.com/llvm/llvm-project/pull/89477
More information about the cfe-commits
mailing list