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:
NAKAMURA Takumi 2014-04-15 08:28:23 +00:00
parent 98583d522f
commit df72764599
1 changed files with 7 additions and 1 deletions

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;