[llvm] [ARM] Remove `UnsafeFPMath` uses (PR #151275)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 27 23:49:15 PDT 2025
================
@@ -629,6 +629,15 @@ static bool checkDenormalAttributeConsistency(const Module &M,
});
}
+// Returns true if all functions have different denormal modes.
+static bool checkDenormalAttributeInconsistency(const Module &M) {
+ if (M.functions().empty())
+ return false;
+ DenormalMode Value = M.functions().begin()->getDenormalModeRaw();
+ return any_of(
----------------
arsenm wrote:
Should only do the any_of from ++begin to avoid re-checking the first function (can also fuse that with the empty check)
https://github.com/llvm/llvm-project/pull/151275
More information about the llvm-commits
mailing list