OSDN Git Service

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)
commit2d003b3f5e32c9d70eb76555cdee543dc93c81a4
tree3a3e4baffa6c4a224fb888159684282602a3c0b3
parentcf9748d82dd0cf500bac2f121481460e7ab1baa8
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278377 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/IPO.h
lib/Transforms/IPO/InlineSimple.cpp
lib/Transforms/IPO/PassManagerBuilder.cpp