[PATCH] D53680: Make fminimum/fmaximum SDNodes commutative and associative

Thomas Lively via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 24 16:18:18 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL345220: Make fminimum/fmaximum SDNodes commutative and associative (authored by tlively, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D53680

Files:
  llvm/trunk/include/llvm/Target/TargetSelectionDAG.td


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>;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53680.171020.patch
Type: text/x-patch
Size: 958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181024/702c83b1/attachment.bin>


More information about the llvm-commits mailing list