ThinLTO: use the callgraph from the combined index to drive the FunctionImporter
authorMehdi Amini <mehdi.amini@apple.com>
Sat, 26 Mar 2016 05:40:34 +0000 (05:40 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sat, 26 Mar 2016 05:40:34 +0000 (05:40 +0000)
commit01e321306b9f505afa2c15428bfcb2143a70a95f
tree03da481f252c49682533d6e72d75072ea85bea0f
parent40221682ee9b2b36538f12ec56eea6629801a3fe
ThinLTO: use the callgraph from the combined index to drive the FunctionImporter

Summary:
Now that the summary contains the full reference/call graph, we can
replace the existing function importer that loads and inspect the IR
to iteratively walk the call graph by a traversal based purely on the
summary information. Decouple the actual importing decision from any
IR manipulation.

Reviewers: tejohnson

Subscribers: llvm-commits, joker.eph

Differential Revision: http://reviews.llvm.org/D18343

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 264503
llvm/include/llvm/Transforms/IPO/FunctionImport.h
llvm/lib/LTO/ThinLTOCodeGenerator.cpp
llvm/lib/Transforms/IPO/FunctionImport.cpp
llvm/test/Transforms/FunctionImport/adjustable_threshold.ll
llvm/test/Transforms/FunctionImport/funcimport.ll
llvm/test/Transforms/FunctionImport/funcimport_alias.ll
llvm/test/Transforms/FunctionImport/funcimport_debug.ll