OSDN Git Service

[DAGCombine] (addcarry (add|uaddo X, Y), 0, Carry) -> (addcarry X, Y, Carry)
authorAmaury Sechet <deadalnix@gmail.com>
Wed, 3 May 2017 16:28:10 +0000 (16:28 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Wed, 3 May 2017 16:28:10 +0000 (16:28 +0000)
commitd161fb677419e3cc22dc254d408d04edf0290460
treec402f1f6a336cd5e83dd095786119124aab5f6dc
parentc8e3032271ba01ebe1ed7ed2d2177cb173c3145f
[DAGCombine] (addcarry (add|uaddo X, Y), 0, Carry) -> (addcarry X, Y, Carry)

Summary: Do the transform when the carry isn't used. It's a pattern exposed when legalizing large integers.

Reviewers: jyknight, nemanjai, mkuper, spatel, RKSimon, zvi, bkramer

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D32755

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302047 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/addcarry.ll