[llvm] [SelectionDAG][ARM] Propagate fast math flags in visitBRCOND (PR #156647)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 3 05:27:25 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();
----------------
arsenm wrote:
Move the getFlags before the if?
https://github.com/llvm/llvm-project/pull/156647
More information about the llvm-commits
mailing list