diff options
author | Sivarv <sivarv@microsoft.com> | 2016-11-09 19:53:24 -0800 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-11-09 19:53:24 -0800 |
commit | 1d5c60807c9182290245c266c4f6daac47d2a4a7 (patch) | |
tree | ab8ab62ccd6ae651c6188864d07ee4d2b66e2ef6 /src | |
parent | 4652e02e893095da3b03c6ed390b9852534f7b69 (diff) | |
download | coreclr-1d5c60807c9182290245c266c4f6daac47d2a4a7.tar.gz coreclr-1d5c60807c9182290245c266c4f6daac47d2a4a7.tar.bz2 coreclr-1d5c60807c9182290245c266c4f6daac47d2a4a7.zip |
Don't turn off compCanUseSSE2 on x86 RyuJIT under jit stress. (#8068)
Diffstat (limited to 'src')
-rw-r--r-- | src/jit/compiler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jit/compiler.cpp b/src/jit/compiler.cpp index 74ba9f0e31..c5f8016d23 100644 --- a/src/jit/compiler.cpp +++ b/src/jit/compiler.cpp @@ -2321,6 +2321,9 @@ void Compiler::compSetProcessor() if (opts.compUseCMOV) opts.compUseCMOV = !compStressCompile(STRESS_USE_CMOV, 50); +// X86 RyuJIT requires SSE2 to be available and hence +// don't turn off compCanUseSSE2 under stress. +#ifdef LEGACY_BACKEND // Should we override the SSE2 setting enum { @@ -2335,7 +2338,12 @@ void Compiler::compSetProcessor() opts.compCanUseSSE2 = true; else if (opts.compCanUseSSE2) opts.compCanUseSSE2 = !compStressCompile(STRESS_GENERIC_VARN, 50); +#else // !LEGACY_JITBACKEND + assert(opts.compCanUseSSE2); +#endif // !LEGACY_JITBACKEND + #endif // DEBUG + #endif // _TARGET_X86_ } |