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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 27 23:51:24 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()))
----------------
arsenm wrote:

I'd think you can just drop this, it should subsumed by the denormal-fp-math check 

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


More information about the llvm-commits mailing list