[PATCH] D48105: [llvm][Instrumentation] Add Call Graph Profile pass

Michael Spencer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 25 19:40:52 PDT 2018


Bigcheese updated this revision to Diff 152826.
Bigcheese marked 3 inline comments as done.
Bigcheese added a comment.

- Move to new PM
- Use `CallSite`
- Bail early if no profile counts
- Use `TargetTransformInfo::isLoweredToCall`


https://reviews.llvm.org/D48105

Files:
  include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
  include/llvm/Transforms/Instrumentation/CGProfile.h
  lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  lib/IR/Verifier.cpp
  lib/Passes/PassBuilder.cpp
  lib/Passes/PassRegistry.def
  lib/Transforms/Instrumentation/CGProfile.cpp
  lib/Transforms/Instrumentation/CMakeLists.txt
  test/Instrumentation/cgprofile.ll
  test/MC/ELF/cgprofile.ll
  test/Other/new-pm-defaults.ll
  test/Verifier/module-flags-cgprofile.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48105.152826.patch
Type: text/x-patch
Size: 14731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180626/283a1c63/attachment-0001.bin>


More information about the llvm-commits mailing list