X86JITInfo: [x86] Use X86CompilationCallback_SSE() along;
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 15 Apr 2014 04:12:21 +0000 (04:12 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 15 Apr 2014 04:12:21 +0000 (04:12 +0000)
  *not* Subtarget->hasSSE1()
  *but* __SSE__, the flag that LLVM libraries are compiled

The callback calls internal LLVM JIT libraries. It may be built with -msse (or above).

FIXME: JIT may use "host" instead of "generic" by default.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206240 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86JITInfo.cpp

index e99f2d9567f26cf1f50c46383d5c2c0d8bd1b989..481240d1f5131146d783d5c9be90c1b4cd26e99a 100644 (file)
@@ -426,9 +426,8 @@ X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {
   JITCompilerFunction = F;
   TsanIgnoreWritesEnd();
 
-#if defined (X86_32_JIT) && !defined (_MSC_VER)
-  if (Subtarget->hasSSE1())
-    return X86CompilationCallback_SSE;
+#if defined (X86_32_JIT) && !defined (_MSC_VER) && defined(__SSE__)
+  return X86CompilationCallback_SSE;
 #endif
 
   return X86CompilationCallback;