Fixed false ThinLTO cache misses problem (PR 45819).
authorromanova-ekaterina <katya.romanova@sony.com>
Tue, 9 Jun 2020 20:46:28 +0000 (13:46 -0700)
committerromanova-ekaterina <katya.romanova@sony.com>
Wed, 10 Jun 2020 19:41:41 +0000 (12:41 -0700)
commit252892fea7088abbeff9476e0ecbacc091d135a0
tree215bbb7c426389cf7fd77971b1c8d95e14b8ce40
parent60fe25cb0c73f1ad2d973539512859d37154fe35
Fixed false ThinLTO cache misses problem (PR 45819).

We relied on the fact that the iterators walks through the elements of a
DenseSet in a deterministic order (which is not true). This caused
ThinLTO cache misses. This patch addresses this problem.
See PR 45819 for additional information
https://bugs.llvm.org/show_bug.cgi?id=45819

Differential Revision: https://reviews.llvm.org/D79772
llvm/lib/LTO/LTO.cpp