[llvm] [ARM] Remove `UnsafeFPMath` uses (PR #151275)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 31 01:33:14 PDT 2025


================
@@ -695,7 +710,9 @@ void ARMAsmPrinter::emitAttributes() {
                                              DenormalMode::getPositiveZero()))
     ATS.emitAttribute(ARMBuildAttrs::ABI_FP_denormal,
                       ARMBuildAttrs::PositiveZero);
-  else if (!TM.Options.UnsafeFPMath)
+  else if (checkDenormalAttributeInconsistency(*MMI->getModule()) ||
+           checkDenormalAttributeConsistency(
+               *MMI->getModule(), "denormal-fp-math", DenormalMode::getIEEE()))
----------------
paperchalice wrote:

How should these tags generate if `UnsafeFPMath` is replaced by denormal mode? Denormal mode is a per function attribute...

https://github.com/llvm/llvm-project/pull/151275


More information about the llvm-commits mailing list