[PATCH] D30437: [DAGCombiner] Do various combine on usubo.

Zvi Rackover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 5 10:52:17 PST 2017


zvi added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:2130
+
+  // Canonicalize (usubo -1, x) -> ~x, i.e. (xor x, -1) + no borrow
+  if (isAllOnesConstant(N0))
----------------
If i am not mistaken, we don't have a similar LLVM IR transform in InstCombine or InstSimplify.


https://reviews.llvm.org/D30437





More information about the llvm-commits mailing list