summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-04-15 04:12:21 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-04-15 04:12:21 +0000
commit33ec29ace9e2437fa818fba61d3ed8c558bba6ce (patch)
tree4df3336018dde99a99b2f3d31f90756fab906e5b /llvm/lib
parent2c6ff0cbb4a7c49464d8e95dff9e4875a72f0fe5 (diff)
downloadbcm5719-llvm-33ec29ace9e2437fa818fba61d3ed8c558bba6ce.tar.gz
bcm5719-llvm-33ec29ace9e2437fa818fba61d3ed8c558bba6ce.zip
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. llvm-svn: 206240
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86JITInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86JITInfo.cpp b/llvm/lib/Target/X86/X86JITInfo.cpp
index e99f2d9567f..481240d1f51 100644
--- a/llvm/lib/Target/X86/X86JITInfo.cpp
+++ b/llvm/lib/Target/X86/X86JITInfo.cpp
@@ -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;
OpenPOWER on IntegriCloud