OSDN Git Service

Recommitting Craig Topper's patch now that r296476 has been recommitted.
authorNirav Dave <niravd@google.com>
Tue, 14 Mar 2017 01:42:23 +0000 (01:42 +0000)
committerNirav Dave <niravd@google.com>
Tue, 14 Mar 2017 01:42:23 +0000 (01:42 +0000)
commit5fc240a5b656a0c1d5a35d56527828ff3a7d8f91
tree4cd2e0c94e7c3692ee4f930c57c286ab8b9c954a
parent3bbf394145bab93a33e211a5489007b54d8f8b49
Recommitting Craig Topper's patch now that r296476 has been recommitted.

When checking if chain node is foldable, make sure the intermediate nodes have a single use across all results not just the result that was used to reach the chain node.

This recovers a test case that was severely broken by r296476, my making sure we don't create ADD/ADC that loads and stores when there is also a flag dependency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297698 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
test/CodeGen/X86/i256-add.ll