[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:13:10 PDT 2018
tlively created this revision.
tlively added reviewers: aheejin, dschuff.
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D53680
Files:
include/llvm/Target/TargetSelectionDAG.td
Index: include/llvm/Target/TargetSelectionDAG.td
===================================================================
--- include/llvm/Target/TargetSelectionDAG.td
+++ 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.171018.patch
Type: text/x-patch
Size: 925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181024/e40ce578/attachment.bin>
More information about the llvm-commits
mailing list