[llvm] [DAGCombiner] Remove `UnsafeFPMath` usage in `visitFSUBForFMACombine` etc. (PR #145637)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 27 01:06:52 PDT 2025


================
@@ -17167,7 +17167,7 @@ SDValue DAGCombiner::visitFSUBForFMACombine(SDNode *N) {
   }
 
   auto isReassociable = [&Options](SDNode *N) {
-    return Options.UnsafeFPMath || N->getFlags().hasAllowReassociation();
+    return N->getFlags().hasAllowReassociation();
   };
----------------
arsenm wrote:

Can now drop the lambda and just directly check the flags

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


More information about the llvm-commits mailing list