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

David Green via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 3 01:39:35 PDT 2025


================
@@ -5712,9 +5712,12 @@ SDValue ARMTargetLowering::LowerBR_CC(SDValue Op, SelectionDAG &DAG) const {
     return DAG.getNode(ARMISD::BRCOND, dl, MVT::Other, Chain, Dest, ARMcc, Cmp);
   }
 
-  if (getTargetMachine().Options.UnsafeFPMath &&
-      (CC == ISD::SETEQ || CC == ISD::SETOEQ ||
-       CC == ISD::SETNE || CC == ISD::SETUNE)) {
+  if (SDNodeFlags Flags = Op->getFlags();
----------------
davemgreen wrote:

Can you take this part (and the DAGCombiner.cpp part) and commit them separately?

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


More information about the llvm-commits mailing list