X86JITInfo: [x86] Rework r206240, X86CompilationCallback_SSE() should be called for SSE-enabled code generator, even if LLVM is not built with -msse.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2014-04-15 08:28:23 +00:00
parent d5b514ed23
commit 2727dbcc37

View File

@ -426,8 +426,14 @@ X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {
JITCompilerFunction = F;
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;
#else
if (Subtarget->hasSSE1())
return X86CompilationCallback_SSE;
#endif
#endif
return X86CompilationCallback;