]> granicus.if.org Git - llvm/commit
Pass AssumptionCacheTracker from SampleProfileLoader to Inliner
authorDehao Chen <dehao@google.com>
Mon, 20 Jun 2016 20:53:40 +0000 (20:53 +0000)
committerDehao Chen <dehao@google.com>
Mon, 20 Jun 2016 20:53:40 +0000 (20:53 +0000)
commit8122c25a1aed4022a746b91879b52dba2f6afe47
treeb5f65dfd17f99fed210dc3dfca6e44428fbc5f0c
parent920d0ae59538267ac48b621833b277fc977e7f1f
Pass AssumptionCacheTracker from SampleProfileLoader to Inliner

Summary: Inliner needs ACT when calling InlineFunction. Instead of nullptr, we need to pass it in from SampleProfileLoader

Reviewers: davidxl

Subscribers: eraman, vsk, danielcdh, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273199 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SampleProfile.cpp
test/Transforms/SampleProfile/Inputs/inline-act.prof [new file with mode: 0644]
test/Transforms/SampleProfile/inline-act.ll [new file with mode: 0644]