Completely ignore strict FP model and denormal-fp-math interaction
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 12 Feb 2020 18:26:04 +0000 (13:26 -0500)
committerMatt Arsenault <arsenm2@gmail.com>
Wed, 12 Feb 2020 18:26:46 +0000 (13:26 -0500)
No behavior is going to make sense here until the default is IEEE.

clang/lib/Driver/ToolChains/Clang.cpp

index 79a518c..e71fbae 100644 (file)
@@ -2771,8 +2771,6 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
       if (HonorINFs && HonorNaNs &&
         !AssociativeMath && !ReciprocalMath &&
         SignedZeros && TrappingMath && RoundingFPMath &&
-        // FIXME: This should check for IEEE when it's the default.
-        DenormalFPMath != llvm::DenormalMode::getInvalid() &&
         FPContract.equals("off"))
         // OK: Current Arg doesn't conflict with -ffp-model=strict
         ;