OSDN Git Service

Only generate addcarry node when it is legal.
authorAmaury Sechet <deadalnix@gmail.com>
Thu, 1 Jun 2017 12:03:16 +0000 (12:03 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Thu, 1 Jun 2017 12:03:16 +0000 (12:03 +0000)
commit0ce2c700dd0d42ce3f30314ae00e6e7707fb651c
treec46ea816bde489e066950cf6746ae2eaef46df26
parentdf1cbec93f7e4bb0c1c3395d103c37499b221416
Only generate addcarry node when it is legal.

Summary:
This is a problem uncovered by stage2 testing. ADDCARRY end up being generated on target that do not support it.

The patch that introduced the problem has other patches layed on top of it, so we want to fix the issue rather than revert it to avoid creating a lor of churn.

A regression test will be added shortly, but this is committed as this in order to get the build back to green promptly.

Subscribers: llvm-commits

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

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