Files
Dehao Chen 4809f170d0 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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313277 91177308-0d34-0410-b5e6-96231b3b80d8
2017-09-14 17:29:56 +00:00

8 lines
118 B
Plaintext

_Z3foov:200:100
1: _Z3barv:0
2: no_inline:100
3: _Z3barv:100
recursive:200:100
1: recursive:100
2: recursive:100