Fixes a bug in the DAGCombiner. LoadSDNodes have two values (data, chain).
authorNadav Rotem <nadav.rotem@intel.com>
Wed, 11 May 2011 14:40:50 +0000 (14:40 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Wed, 11 May 2011 14:40:50 +0000 (14:40 +0000)
commit42febc6e9963f82d5c56c3c7e6afe5e00769af41
tree831ef5f6559c00be76e73b0b5554a74c4efb533d
parent104e99256d951674faadd865ed44ec698ede31ea
Fixes a bug in the DAGCombiner.  LoadSDNodes have two values (data, chain).
If there is a store after the load node, then there is a chain, which means
that there is another user. Thus, asking hasOneUser would fail. Instead we
ask hasNUsesOfValue on the 'data' value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131183 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/ARM/vstlane.ll
test/CodeGen/X86/2011-05-09-loaduse.ll [new file with mode: 0644]
test/CodeGen/X86/vec_extract-sse4.ll
test/CodeGen/X86/vec_extract.ll