OSDN Git Service

ThinLTO: sort inputs and schedule by decreasing size
authorMehdi Amini <mehdi.amini@apple.com>
Mon, 16 May 2016 19:33:07 +0000 (19:33 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Mon, 16 May 2016 19:33:07 +0000 (19:33 +0000)
commitbfed1d58c7d11616a6e58af845a438ea26cfb172
tree1d03ea03e7f5080bb2b8a56bc6b5484b7f4020cb
parent594d70d5cc855f2cdeffc5cc25bb81840fda84d5
ThinLTO: sort inputs and schedule by decreasing size

This is a compile time optimization: keeping a large file to process
at the end hurts parallelism.
The heurisitic used right now is the input buffer size, however we
may want to consider the number of functions to import or the
different number of files to load for importing as well.

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269684 91177308-0d34-0410-b5e6-96231b3b80d8
lib/LTO/ThinLTOCodeGenerator.cpp