[llvm] 6ae4030 - Revert "[Analysis] Ensure use of strict fp exceptions in ConstantFolding (#136139)"
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 28 02:26:40 PDT 2025
Author: Antonio Frighetto
Date: 2025-04-28T11:26:12+02:00
New Revision: 6ae4030d4cfc1b994be8e100ef72707ff570c89d
URL: https://github.com/llvm/llvm-project/commit/6ae4030d4cfc1b994be8e100ef72707ff570c89d
DIFF: https://github.com/llvm/llvm-project/commit/6ae4030d4cfc1b994be8e100ef72707ff570c89d.diff
LOG: Revert "[Analysis] Ensure use of strict fp exceptions in ConstantFolding (#136139)"
This reverts commit 8506980d30fd2faf41518f24e985f820609a7bd0, multiple buildbot failures reported.
Added:
Modified:
llvm/lib/Analysis/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/CMakeLists.txt b/llvm/lib/Analysis/CMakeLists.txt
index ccd941b8a2b1f..fbf3b587d6bd2 100644
--- a/llvm/lib/Analysis/CMakeLists.txt
+++ b/llvm/lib/Analysis/CMakeLists.txt
@@ -23,17 +23,6 @@ if (DEFINED LLVM_HAVE_TF_AOT OR LLVM_HAVE_TFLITE)
endif()
endif()
-# The implementation of ConstantFolding.cpp relies on the use of math functions
-# from the host. In particular, it relies on the detection of floating point
-# exceptions originating from such math functions to prevent invalid cases
-# from being constant folded. Therefore, we must ensure that fp exceptions are
-# handled correctly.
-if (MSVC)
- set_source_files_properties(ConstantFolding.cpp PROPERTIES COMPILE_OPTIONS "/fp:except")
-elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
- set_source_files_properties(ConstantFolding.cpp PROPERTIES COMPILE_OPTIONS "-ffp-exception-behavior=strict")
-endif()
-
add_llvm_component_library(LLVMAnalysis
AliasAnalysis.cpp
AliasAnalysisEvaluator.cpp
More information about the llvm-commits
mailing list