[ThinLTO] Add an import cutoff for debugging/triaging
authorTeresa Johnson <tejohnson@google.com>
Sun, 1 Apr 2018 15:54:40 +0000 (15:54 +0000)
committerTeresa Johnson <tejohnson@google.com>
Sun, 1 Apr 2018 15:54:40 +0000 (15:54 +0000)
commit974706ebf76100f0cccf680bf4a4ad9649e39e94
tree95934117d7910415e1159ae711a3bc997d76396d
parentf80ebc8d214115c1887854aa37965fb799c8b6ef
[ThinLTO] Add an import cutoff for debugging/triaging

Summary:
Adds -import-cutoff=N which will stop importing during the thin link
after N imports. Default is -1 (no  limit).

Reviewers: wmi

Subscribers: inglorion, llvm-commits

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

llvm-svn: 328934
llvm/lib/Transforms/IPO/FunctionImport.cpp
llvm/test/Transforms/FunctionImport/Inputs/funcimport_cutoff.ll [new file with mode: 0644]
llvm/test/Transforms/FunctionImport/funcimport_cutoff.ll [new file with mode: 0644]