[PATCH] D36052: Update the new PM pipeline to make ICP aware if it is SamplePGO build.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 29 15:03:34 PDT 2017


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

In ThinLTO backend compile, OPTOptions are not set so that the ICP in ThinLTO backend does not know if it is a SamplePGO build, in which profile count needs to be annotated directly on call instructions. This patch cleaned up the PGOOptions handling logic and passes down PGOOptions to ThinLTO backend.


https://reviews.llvm.org/D36052

Files:
  lib/LTO/LTOBackend.cpp
  lib/Passes/PassBuilder.cpp
  test/LTO/Resolution/X86/Inputs/load-sample-prof-icp.prof
  test/LTO/Resolution/X86/load-sample-prof-icp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36052.108808.patch
Type: text/x-patch
Size: 7979 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170729/1b1bc79c/attachment.bin>


More information about the llvm-commits mailing list