Remove a wrong performance optimization.
authorRui Ueyama <ruiu@google.com>
Fri, 2 Dec 2016 18:40:43 +0000 (18:40 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 2 Dec 2016 18:40:43 +0000 (18:40 +0000)
commit5419861a527820cd2f1fe1d10137ead1cd9ff346
tree5e0d94ebd74ecbc0b8c9710d3b2cf613eb79f055
parent612d24badf8cbd1421898956b38acf8b283457b4
Remove a wrong performance optimization.

This is a hack for single thread execution. We are using Color[0] and
Color[1] alternately on each iteration. This optimization is to look
at the next slot as opposted to the current slot to get recent results
early. Turns out that the assumption is wrong, because the other slots
are not always have the most recent values, but instead it may have
stale values of the previous iteration. This patch removes that
performance hack.

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