diff options
| author | Josh Ferrell <josh@vector35.com> | 2024-04-12 15:59:01 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2024-04-12 15:59:01 -0400 |
| commit | a47ea5cab474a7f10dd3e65cedbc59a86d59098a (patch) | |
| tree | fa6798404034649b06002ad1de82f9a1218c6069 /arch | |
| parent | 70feb19a0a2c28a40148c2d99910113a462ef178 (diff) | |
Prevent slowdown when compiling with clang on not mac
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86/arch_x86_intrinsics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/arch_x86_intrinsics.cpp b/arch/x86/arch_x86_intrinsics.cpp index 34c4c30a..bc4efaff 100644 --- a/arch/x86/arch_x86_intrinsics.cpp +++ b/arch/x86/arch_x86_intrinsics.cpp @@ -5229,7 +5229,7 @@ vector<Confidence<Ref<Type>>> X86CommonArchitecture::GetIntrinsicOutputs(uint32_ } -#ifdef __APPLE__ +#ifdef __clang__ // clang is very slow at optimizing this function. Optimizations have nearly zero // impact on initialization time, so just turn them off. void X86CommonArchitecture::InitializeCachedInputTypes() __attribute__((optnone)) @@ -5241,7 +5241,7 @@ void X86CommonArchitecture::InitializeCachedInputTypes() } -#ifdef __APPLE__ +#ifdef __clang__ // clang is very slow at optimizing this function. Optimizations have nearly zero // impact on initialization time, so just turn them off. void X86CommonArchitecture::InitializeCachedOutputTypes() __attribute__((optnone)) |
