Don't replace all dominated uses if there is only one use, since that
authorDuncan Sands <baldrick@free.fr>
Sat, 15 Oct 2011 11:13:42 +0000 (11:13 +0000)
committerDuncan Sands <baldrick@free.fr>
Sat, 15 Oct 2011 11:13:42 +0000 (11:13 +0000)
commit1673b15da2d908e0ea9fd2d64f61d6d226cfe16e
tree9007d5fb98a8a2af011af018194a873ef1291c3d
parent6e6a558ebce556476d8fd659b419a2760f2ab154
Don't replace all dominated uses if there is only one use, since that
use can't be dominated, saving one domtree lookup.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142066 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp