]> granicus.if.org Git - llvm/commit
[DAGCombine] Make sure we check the ResNo from UADDO before combining
authorAmaury Sechet <deadalnix@gmail.com>
Sun, 11 Jun 2017 11:36:38 +0000 (11:36 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Sun, 11 Jun 2017 11:36:38 +0000 (11:36 +0000)
commitddcf5ab29b6c289215d25c40eabb1e3497ffd359
tree232e38b0655653d913154daffb91bb09ae2cd580
parent8177dcd1042566a044ea4047929a3e612c744e39
[DAGCombine] Make sure we check the ResNo from UADDO before combining

Summary: UADDO has 2 result, and one must check the result no before doing any kind of combine. Without it, the transform is invalid.

Reviewers: joerg

Subscribers: llvm-commits

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

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