[ThinLTO] Thin link efficiency: skip candidate added later with higher threshold...
authorTeresa Johnson <tejohnson@google.com>
Thu, 15 Dec 2016 20:48:19 +0000 (20:48 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 15 Dec 2016 20:48:19 +0000 (20:48 +0000)
commit475b51a7000473bd9561e40dfaa20cf6bc2c9cb1
tree1e44a5b7f052c4021a9b17fbcd3efb9ee26b2864
parent0e8a299f190ba206fb58f1bf06c9b195b42734e0
[ThinLTO] Thin link efficiency: skip candidate added later with higher threshold (NFC)

Summary:
Thin link efficiency improvement. After adding an importing candidate to
the worklist we might have later added it again with a higher threshold.
Skip it when popped from the worklist if we recorded a higher threshold
than the current worklist entry, it will get processed again at the
higher threshold when that entry is popped.

This required adding the summary's GUID to the worklist, so that it can
be used to query the recorded highest threshold for it when we pop from the
worklist.

Reviewers: mehdi_amini

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D27696

llvm-svn: 289867
llvm/lib/Transforms/IPO/FunctionImport.cpp