Commit a764381e by Nicolas Capens Committed by Nicolas Capens

Disable unsafe FP math optimizations for LLVM 7.0.

Failures in dEQP using SwiftShader with LLVM 7.0 were caused by unsafe floating point math optimizations, which are more aggressive than with LLVM 3.0. Bug b/115344057 Change-Id: Idf564d0193efba37cd1192a188b18a5f8b4ed4f7 Reviewed-on: https://swiftshader-review.googlesource.com/20708Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarShannon Woods <shannonwoods@google.com>
parent 52551d1c
...@@ -767,7 +767,7 @@ namespace sw ...@@ -767,7 +767,7 @@ namespace sw
// llvm::NoNaNsFPMath = true; // llvm::NoNaNsFPMath = true;
#else #else
llvm::TargetOptions targetOpts; llvm::TargetOptions targetOpts;
targetOpts.UnsafeFPMath = true; targetOpts.UnsafeFPMath = false;
// targetOpts.NoInfsFPMath = true; // targetOpts.NoInfsFPMath = true;
// targetOpts.NoNaNsFPMath = true; // targetOpts.NoNaNsFPMath = true;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment