Index: llvm/trunk/include/llvm/Target/TargetSelectionDAG.td =================================================================== --- llvm/trunk/include/llvm/Target/TargetSelectionDAG.td +++ llvm/trunk/include/llvm/Target/TargetSelectionDAG.td @@ -413,8 +413,10 @@ [SDNPCommutative]>; def fmaxnum_ieee : SDNode<"ISD::FMAXNUM_IEEE", SDTFPBinOp, [SDNPCommutative]>; -def fminimum : SDNode<"ISD::FMINIMUM" , SDTFPBinOp>; -def fmaximum : SDNode<"ISD::FMAXIMUM" , SDTFPBinOp>; +def fminimum : SDNode<"ISD::FMINIMUM" , SDTFPBinOp, + [SDNPCommutative, SDNPAssociative]>; +def fmaximum : SDNode<"ISD::FMAXIMUM" , SDTFPBinOp, + [SDNPCommutative, SDNPAssociative]>; def fgetsign : SDNode<"ISD::FGETSIGN" , SDTFPToIntOp>; def fcanonicalize : SDNode<"ISD::FCANONICALIZE", SDTFPUnaryOp>; def fneg : SDNode<"ISD::FNEG" , SDTFPUnaryOp>;