[llvm] [TargetOptions] Remove UnsafeFPMath use in HonorSignDependentRoundingFPMath (PR #162053)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 6 02:35:21 PDT 2025
https://github.com/paperchalice created https://github.com/llvm/llvm-project/pull/162053
None
>From e8370cd7cd6ea6e166ed292a36ba117523f5907a Mon Sep 17 00:00:00 2001
From: PaperChalice <liujunchang97 at outlook.com>
Date: Mon, 6 Oct 2025 17:34:43 +0800
Subject: [PATCH] [TargetOptions] Remove UnsafeFPMath use in
HonorSignDependentRoundingFPMath
---
llvm/lib/CodeGen/TargetOptionsImpl.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/CodeGen/TargetOptionsImpl.cpp b/llvm/lib/CodeGen/TargetOptionsImpl.cpp
index 5eb86e740ff7c..049efe8c2a9e4 100644
--- a/llvm/lib/CodeGen/TargetOptionsImpl.cpp
+++ b/llvm/lib/CodeGen/TargetOptionsImpl.cpp
@@ -51,7 +51,7 @@ bool TargetOptions::FramePointerIsReserved(const MachineFunction &MF) const {
/// HonorSignDependentRoundingFPMath - Return true if the codegen must assume
/// that the rounding mode of the FPU can change from its default.
bool TargetOptions::HonorSignDependentRoundingFPMath() const {
- return !UnsafeFPMath && HonorSignDependentRoundingFPMathOption;
+ return HonorSignDependentRoundingFPMathOption;
}
/// NOTE: There are targets that still do not support the debug entry values
More information about the llvm-commits
mailing list