forked from OSchip/llvm-project
X86JITInfo: [x86] Rework r206240, X86CompilationCallback_SSE() should be called for SSE-enabled code generator, even if LLVM is not built with -msse.
llvm-svn: 206261
This commit is contained in:
parent
98583d522f
commit
df72764599
|
@ -426,8 +426,14 @@ X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {
|
||||||
JITCompilerFunction = F;
|
JITCompilerFunction = F;
|
||||||
TsanIgnoreWritesEnd();
|
TsanIgnoreWritesEnd();
|
||||||
|
|
||||||
#if defined (X86_32_JIT) && !defined (_MSC_VER) && defined(__SSE__)
|
#if defined (X86_32_JIT) && !defined (_MSC_VER)
|
||||||
|
#if defined(__SSE__)
|
||||||
|
// SSE Callback should be called for SSE-enabled LLVM.
|
||||||
return X86CompilationCallback_SSE;
|
return X86CompilationCallback_SSE;
|
||||||
|
#else
|
||||||
|
if (Subtarget->hasSSE1())
|
||||||
|
return X86CompilationCallback_SSE;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return X86CompilationCallback;
|
return X86CompilationCallback;
|
||||||
|
|
Loading…
Reference in New Issue