OSDN Git Service

[DAGISel] When checking if chain node is foldable, make sure the intermediate nodes...
authorCraig Topper <craig.topper@gmail.com>
Tue, 28 Feb 2017 16:52:05 +0000 (16:52 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 28 Feb 2017 16:52:05 +0000 (16:52 +0000)
commit79e90c55709c88278a2dbf5310d127360229d9f3
tree2a771ea4c9557d5d5349ae3e0680fdbe7221c9b3
parentb57bf30b4704bbbdcf0e03ae76fddac69cacf7f0
[DAGISel] 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@296486 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
test/CodeGen/X86/i256-add.ll