Perform InstructioinCombiningPass before SampleProfile pass.
authorDehao Chen <dehao@google.com>
Tue, 1 Mar 2016 22:53:02 +0000 (22:53 +0000)
committerDehao Chen <dehao@google.com>
Tue, 1 Mar 2016 22:53:02 +0000 (22:53 +0000)
commit1012be120a17ca7693624e9ec63e7399d6d5e330
tree7737c58232dbb0e2b4cdf51503992c9489872d14
parent2e6a9a290b0edb2bbf06b13004b8082bdf315344
Perform InstructioinCombiningPass before SampleProfile pass.

Summary: SampleProfile pass needs to be performed after InstructionCombiningPass, which helps eliminate un-inlinable function calls.

Reviewers: davidxl, dnovillo

Subscribers: llvm-commits

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

llvm-svn: 262419
llvm/include/llvm/Transforms/InstCombine/InstCombine.h
llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/SampleProfile/Inputs/inline-combine.prof [new file with mode: 0644]
llvm/test/Transforms/SampleProfile/calls.ll
llvm/test/Transforms/SampleProfile/cov-zero-samples.ll
llvm/test/Transforms/SampleProfile/inline-combine.ll [new file with mode: 0644]
llvm/test/Transforms/SampleProfile/inline-coverage.ll