| commit | 3a81f84d9aaecbb5dfcdecdc02dbfb3dad981b84 | [log] [tgz] |
|---|---|---|
| author | Dehao Chen <dehao@google.com> | Thu Sep 14 17:29:56 2017 +0000 |
| committer | Dehao Chen <dehao@google.com> | Thu Sep 14 17:29:56 2017 +0000 |
| tree | d4690b5832271238c002d407ff6ab788e82f9d98 | |
| parent | 55e446737feb6c0b0a15ae95c0b489796658d0db [diff] |
Invoke GetInlineCost for legality check before inline functions in SampleProfileLoader. Summary: SampleProfileLoader inlines hot functions if it is inlined in the profiled binary. However, the inline needs to be guarded by legality check, otherwise it could lead to correctness issues. Reviewers: eraman, davidxl Reviewed By: eraman Subscribers: vitalybuka, sanjoy, llvm-commits Differential Revision: https://reviews.llvm.org/D37779 llvm-svn: 313277