Skip to content

Commit 6e61c2c

Browse files
antoniofrighettoIanWood1
authored andcommitted
Revert "[Analysis] Ensure use of strict fp exceptions in ConstantFolding (llvm#136139)"
This reverts commit 8506980, multiple buildbot failures reported.
1 parent 2114572 commit 6e61c2c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

llvm/lib/Analysis/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ if (DEFINED LLVM_HAVE_TF_AOT OR LLVM_HAVE_TFLITE)
2323
endif()
2424
endif()
2525

26-
# The implementation of ConstantFolding.cpp relies on the use of math functions
27-
# from the host. In particular, it relies on the detection of floating point
28-
# exceptions originating from such math functions to prevent invalid cases
29-
# from being constant folded. Therefore, we must ensure that fp exceptions are
30-
# handled correctly.
31-
if (MSVC)
32-
set_source_files_properties(ConstantFolding.cpp PROPERTIES COMPILE_OPTIONS "/fp:except")
33-
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
34-
set_source_files_properties(ConstantFolding.cpp PROPERTIES COMPILE_OPTIONS "-ffp-exception-behavior=strict")
35-
endif()
36-
3726
add_llvm_component_library(LLVMAnalysis
3827
AliasAnalysis.cpp
3928
AliasAnalysisEvaluator.cpp

0 commit comments

Comments
 (0)