[PATCH] D30282: Add call branch annotation for ICP promoted direct call in SamplePGO mode.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 17:03:37 PST 2017


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

SamplePGO uses branch_weight annotation to represent callsite hotness. When ICP promotes an indirect call to direct call, we need to make sure the direct call is annotated with branch_weight in SamplePGO mode, so that downstream function inliner can use hot callsite heuristic.


https://reviews.llvm.org/D30282

Files:
  include/llvm/Passes/PassBuilder.h
  include/llvm/Transforms/Instrumentation.h
  include/llvm/Transforms/PGOInstrumentation.h
  lib/Passes/PassBuilder.cpp
  lib/Transforms/IPO/PassManagerBuilder.cpp
  lib/Transforms/IPO/SampleProfile.cpp
  lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  test/Transforms/PGOProfile/indirect_call_promotion.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30282.89447.patch
Type: text/x-patch
Size: 14027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170223/6e24a365/attachment.bin>


More information about the llvm-commits mailing list