When replacing uses and the same node is reached
authorDuncan Sands <baldrick@free.fr>
Tue, 13 Jan 2009 15:17:14 +0000 (15:17 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 13 Jan 2009 15:17:14 +0000 (15:17 +0000)
commit2ecf88d1751c847b87a7119bf34fff85a3d272e2
tree5ec8e6b6c0a5fcfc35f47789cbcb41b9c442453d
parent87b8cce21cef3edab13ebebbf42387cd7b227224
When replacing uses and the same node is reached
via two paths, process it once not twice, d'oh!
Analysis, testcase and original patch thanks to
Mon Ping Wang.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62169 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
test/CodeGen/X86/2009-01-13-DoubleUpdate.ll [new file with mode: 0644]