[PATCH] D36341: Make ICP uses PSI to check for hotness.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 4 15:46:32 PDT 2017


danielcdh created this revision.
Herald added subscribers: mehdi_amini, sanjoy.

Currently, ICP checks the count against a fixed value to see if it is hot enough to be promoted. This does not work for SamplePGO because sampled count may be much smaller. This patch uses PSI to check if the count is hot enough to be promoted.


https://reviews.llvm.org/D36341

Files:
  lib/Analysis/IndirectCallPromotionAnalysis.cpp
  lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  test/Other/new-pm-lto-defaults.ll
  test/Other/new-pm-thinlto-defaults.ll
  test/Transforms/PGOProfile/icp_invoke.ll
  test/Transforms/PGOProfile/indirect_call_promotion.ll
  test/Transforms/PGOProfile/thinlto_indirect_call_promotion.ll
  test/Transforms/PGOProfile/thinlto_samplepgo_icp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36341.109831.patch
Type: text/x-patch
Size: 11729 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170804/1da3419a/attachment-0001.bin>


More information about the llvm-commits mailing list