OSDN Git Service

[DAGCombine] (add X, (addcarry Y, 0, Carry)) -> (addcarry X, Y, Carry)
authorAmaury Sechet <deadalnix@gmail.com>
Tue, 2 May 2017 13:34:25 +0000 (13:34 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Tue, 2 May 2017 13:34:25 +0000 (13:34 +0000)
commitbd38dfea4cc854ca3908f79b24d51553bf84855c
treef9b57a3cd2d711b16380ac8e1f23f81eeb9aa2e9
parent62aad95bf3641b6a627e9cafa647e106bfd8b506
[DAGCombine] (add X, (addcarry Y, 0, Carry)) -> (addcarry X, Y, Carry)

Summary: Common pattern when legalizing large integers operations. Similar to D32687, when the carry isn't used.

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

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

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