[ThinLTO] Add option to limit importing based on instruction count
authorTeresa Johnson <tejohnson@google.com>
Tue, 24 Nov 2015 22:55:46 +0000 (22:55 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 24 Nov 2015 22:55:46 +0000 (22:55 +0000)
commitf65b5feba490438fca8b365dc84cee69f7d97ec7
tree06f5a3c7ddb4826b99acd4803776f7773e04edbd
parent057d7b6cfa9e12dae3ebaea4034aaf14c9de3965
[ThinLTO] Add option to limit importing based on instruction count

Add a simple initial heuristic to control importing based on the number
of instructions recorded in the function's summary. Add option to
control the limit, and test using option.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254036 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionImport.cpp
test/Transforms/FunctionImport/funcimport.ll