Add a new method to create SimpleInliner instance and make pre-inliner use this.
authorEaswaran Raman <eraman@google.com>
Thu, 11 Aug 2016 18:24:08 +0000 (18:24 +0000)
committerEaswaran Raman <eraman@google.com>
Thu, 11 Aug 2016 18:24:08 +0000 (18:24 +0000)
commit61edc107bbc0c92213184121db1c4bdf029bfdaf
tree0266d7387042294ecd647a8485433569c8a0c25b
parent60f0b514855219a13a9b5929ed6b7ee53e8afb3e
Add a new method to create SimpleInliner instance and make pre-inliner use this.

This adds a createFunctionInliningPass pass that takes an InlineParams object and use this to create the pre-inliner pass. This prevents the regular inliner's threshold flag from influencing the preinliner.

Differential revision: https://reviews.llvm.org/D23377

llvm-svn: 278377
llvm/include/llvm/Transforms/IPO.h
llvm/lib/Transforms/IPO/InlineSimple.cpp
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp