[llvm] 83aaa20 - GlobalISel: Define equivalent nodes for saturating add/sub

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 11:46:53 PDT 2020


Author: Matt Arsenault
Date: 2020-07-13T14:46:40-04:00
New Revision: 83aaa2085e5f44a287a3ac90532197a077c0160e

URL: https://github.com/llvm/llvm-project/commit/83aaa2085e5f44a287a3ac90532197a077c0160e
DIFF: https://github.com/llvm/llvm-project/commit/83aaa2085e5f44a287a3ac90532197a077c0160e.diff

LOG: GlobalISel: Define equivalent nodes for saturating add/sub

Added: 
    

Modified: 
    llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td b/llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td
index b8f03bcec16b..150834e65b2d 100644
--- a/llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td
+++ b/llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td
@@ -67,6 +67,10 @@ def : GINodeEquiv<G_XOR, xor>;
 def : GINodeEquiv<G_SHL, shl>;
 def : GINodeEquiv<G_LSHR, srl>;
 def : GINodeEquiv<G_ASHR, sra>;
+def : GINodeEquiv<G_SADDSAT, saddsat>;
+def : GINodeEquiv<G_UADDSAT, uaddsat>;
+def : GINodeEquiv<G_SSUBSAT, ssubsat>;
+def : GINodeEquiv<G_USUBSAT, usubsat>;
 def : GINodeEquiv<G_SELECT, select>;
 def : GINodeEquiv<G_FNEG, fneg>;
 def : GINodeEquiv<G_FPEXT, fpextend>;


        


More information about the llvm-commits mailing list