Files
clang-p2996/llvm/test/Transforms/SampleProfile/Inputs/einline.prof
Dehao Chen 3a81f84d9a 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
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