[PATCH] D55660: [SampleFDO] handle ProfileSampleAccurate when initializing function entry count

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 13 09:36:01 PST 2018


wmi created this revision.
wmi added reviewers: eraman, tejohnson, danielcdh.

ProfileSampleAccurate is used to indicate the profile has exact match to the code to be optimized.

Previously ProfileSampleAccurate is handled in ProfileSummaryInfo::isColdCallSite and ProfileSummaryInfo::isColdBlock. A better solution is to initialize function entry count to 0 when ProfileSampleAccurate is true, so we don't have to handle ProfileSampleAccurate in multiple places.

Thanks to Easwaran for the idea to the improvement.


Repository:
  rL LLVM

https://reviews.llvm.org/D55660

Files:
  lib/Analysis/ProfileSummaryInfo.cpp
  lib/Transforms/IPO/SampleProfile.cpp
  test/Transforms/CodeGenPrepare/section-samplepgo.ll
  test/Transforms/Inline/inline-cold-callsite-samplepgo.ll
  test/Transforms/SampleProfile/inline-cold-callsite-samplepgo.ll
  test/Transforms/SampleProfile/section-accurate-samplepgo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55660.178084.patch
Type: text/x-patch
Size: 11524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181213/3e25d006/attachment.bin>


More information about the llvm-commits mailing list