[clang] [Driver] Clean up fp-contract handling in clang driver (PR #91271)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Tue May 7 14:25:00 PDT 2024


================
@@ -2893,7 +2915,6 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
       AssociativeMath = false;
       ReciprocalMath = false;
       SignedZeros = true;
-      FPContract = "on";
----------------
andykaylor wrote:

It was unnecessary. Only one of the three fp-models sets FPContract to "on" and that's happening explicitly below. The code here is setting everything to what it would be for fp-model=precise and then resetting it immediately if we're handling -ffp-model=fast. Except for the FPContract state, these are right for fp-model strict as well.

https://github.com/llvm/llvm-project/pull/91271


More information about the cfe-commits mailing list