[ThinLTO] Enable iterative importing in FunctionImport pass
authorTeresa Johnson <tejohnson@google.com>
Tue, 24 Nov 2015 19:55:04 +0000 (19:55 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 24 Nov 2015 19:55:04 +0000 (19:55 +0000)
commitcd753d0cf93b0a278aea15a21d49fac5c84d4947
treec9b134e2ed24ca9ecf609c58935b17940439f5a4
parent5c1d0fd2040c07b467e486fc6d2aeb4da6dab12e
[ThinLTO] Enable iterative importing in FunctionImport pass

Analyze imported function bodies and add any new external calls to
the worklist for importing. Currently no controls on the importing
so this will end up importing everything possible in the call tree
below the importing module. Basic profitability checks coming next.

Update test to check for iteratively inlined functions.

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