[llvm] [Instrumentation] Remove unsafe-fp-math attribute support (PR #164533)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 21 19:06:00 PDT 2025
https://github.com/paperchalice created https://github.com/llvm/llvm-project/pull/164533
None
>From 5840c3ba59c9223aaf00bb2808a17eb620db05da Mon Sep 17 00:00:00 2001
From: PaperChalice <liujunchang97 at outlook.com>
Date: Wed, 22 Oct 2025 10:05:18 +0800
Subject: [PATCH] [Instrumentation] Remove unsafe-fp-math attribute support
---
.../Transforms/Instrumentation/NumericalStabilitySanitizer.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
index d18c0d0d2d90d..80e77e099c695 100644
--- a/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
@@ -2020,7 +2020,6 @@ static void moveFastMathFlags(Function &F,
F.removeFnAttr(attr); \
FMF.set##setter(); \
}
- MOVE_FLAG("unsafe-fp-math", Fast)
MOVE_FLAG("no-infs-fp-math", NoInfs)
MOVE_FLAG("no-nans-fp-math", NoNaNs)
MOVE_FLAG("no-signed-zeros-fp-math", NoSignedZeros)
More information about the llvm-commits
mailing list