[llvm] r206261 - X86JITInfo: [x86] Rework r206240, X86CompilationCallback_SSE() should be called for SSE-enabled code generator, even if LLVM is not built with -msse.
NAKAMURA Takumi
geek4civic at gmail.com
Tue Apr 15 01:28:23 PDT 2014
Author: chapuni
Date: Tue Apr 15 03:28:23 2014
New Revision: 206261
URL: http://llvm.org/viewvc/llvm-project?rev=206261&view=rev
Log:
X86JITInfo: [x86] Rework r206240, X86CompilationCallback_SSE() should be called for SSE-enabled code generator, even if LLVM is not built with -msse.
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=206261&r1=206260&r2=206261&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86JITInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86JITInfo.cpp Tue Apr 15 03:28:23 2014
@@ -426,8 +426,14 @@ X86JITInfo::getLazyResolverFunction(JITC
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;
More information about the llvm-commits
mailing list