[llvm] [ARM] Remove `UnsafeFPMath` uses (PR #151275)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 27 08:55:08 PDT 2025
================
@@ -695,7 +704,9 @@ void ARMAsmPrinter::emitAttributes() {
DenormalMode::getPositiveZero()))
ATS.emitAttribute(ARMBuildAttrs::ABI_FP_denormal,
ARMBuildAttrs::PositiveZero);
- else if (!TM.Options.UnsafeFPMath)
+ else if (checkDenormalAttributeInconsistency(*MMI->getModule()) ||
----------------
davemgreen wrote:
That might be a sensible approach. We would need to make sure it worked well with LTO and whatnot. Lets try this first and see if anyone has problems with it. If so we can give the alternative a try. Thanks for your work on getting this done.
https://github.com/llvm/llvm-project/pull/151275
More information about the llvm-commits
mailing list