[PATCH] D37779: Invoke GetInlineCost for legality check before inline functions in SampleProfileLoader.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 16:27:53 PDT 2017


danielcdh created this revision.
Herald added a subscriber: sanjoy.

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.


https://reviews.llvm.org/D37779

Files:
  lib/Transforms/IPO/SampleProfile.cpp
  test/Transforms/SampleProfile/Inputs/einline.prof
  test/Transforms/SampleProfile/early-inline.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37779.114937.patch
Type: text/x-patch
Size: 7025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170912/c9b64aa1/attachment.bin>


More information about the llvm-commits mailing list