Fixed a bug during widening where we would avoid legalizing a node. When we
authorMon P Wang <wangmp@apple.com>
Fri, 4 Jun 2010 01:20:10 +0000 (01:20 +0000)
committerMon P Wang <wangmp@apple.com>
Fri, 4 Jun 2010 01:20:10 +0000 (01:20 +0000)
commitf62546ab046d4bc2f055921f25f127fbb942b806
tree1779b65e613658402021ee2d641f228578f4ca3e
parent4314426fc09c5d9578657340dbc1c24e2754b2cf
Fixed a bug during widening where we would avoid legalizing a node.  When we
replace an OpA with a widened OpB, it is possible to get new uses of OpA due to CSE
when recursively updating nodes.  Since OpA has been processed, the new uses are
not examined again.  The patch checks if this occurred and it it did, updates the
new uses of OpA to use OpB.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105453 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
test/CodeGen/X86/widen_shuffle-1.ll
test/CodeGen/X86/widen_shuffle-2.ll [deleted file]