Re-implement the optimization that I removed in r288527.
authorRui Ueyama <ruiu@google.com>
Sun, 4 Dec 2016 16:33:13 +0000 (16:33 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 4 Dec 2016 16:33:13 +0000 (16:33 +0000)
commit045d8281586032cfe545d4f8580d8788cd52f5b8
treedb91751e4272cb5860ff3356d8a91dcdda0c85e0
parent0bc89fbf6aa2b23d7650e0b5ef731ce986e5442d
Re-implement the optimization that I removed in r288527.

I removed a wrong optimization for ICF in r288527. Sean Silva suggested
in a post commit review that the correct algorithm can be implemented
easily. So is this patch.

llvm-svn: 288620
lld/ELF/ICF.cpp