[llvm] r206240 - X86JITInfo: [x86] Use X86CompilationCallback_SSE() along;
NAKAMURA Takumi
geek4civic at gmail.com
Mon Apr 14 21:12:22 PDT 2014
Author: chapuni
Date: Mon Apr 14 23:12:21 2014
New Revision: 206240
URL: http://llvm.org/viewvc/llvm-project?rev=206240&view=rev
Log:
X86JITInfo: [x86] Use X86CompilationCallback_SSE() along;
*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.
Modified:
llvm/trunk/lib/Target/X86/X86JITInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86JITInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86JITInfo.cpp?rev=206240&r1=206239&r2=206240&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86JITInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86JITInfo.cpp Mon Apr 14 23:12:21 2014
@@ -426,9 +426,8 @@ X86JITInfo::getLazyResolverFunction(JITC
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;
More information about the llvm-commits
mailing list