From: NAKAMURA Takumi Date: Tue, 15 Apr 2014 04:12:21 +0000 (+0000) Subject: X86JITInfo: [x86] Use X86CompilationCallback_SSE() along; X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=88f353252d6130469d5854efb37659d3ba015c02;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206240 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86JITInfo.cpp b/lib/Target/X86/X86JITInfo.cpp index e99f2d9567f..481240d1f51 100644 --- a/lib/Target/X86/X86JITInfo.cpp +++ b/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;