Skip to content

Commit 56152fa

Browse files
authored
[Analysis] Guard logf128 cst folding (#106543)
LLVM has a CMake variable to control whether to consider logf128 constant folding which libAnalysis ignores. This patch changes the logf128 check to rely on the global LLVM_HAS_LOGF128 setting made in config-ix.cmake.
1 parent f7d6dfa commit 56152fa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Analysis/CMakeLists.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ add_llvm_component_library(LLVMAnalysis
163163
TargetParser
164164
)
165165

166-
include(CheckCXXSymbolExists)
167-
check_cxx_symbol_exists(logf128 math.h HAS_LOGF128)
168-
if(HAS_LOGF128)
169-
target_compile_definitions(LLVMAnalysis PRIVATE HAS_LOGF128)
166+
if(LLVM_HAS_LOGF128)
167+
target_compile_definitions(LLVMAnalysis PRIVATE HAS_LOGF128)
170168
endif()

0 commit comments

Comments
 (0)