[PATCH] D82213: [Remarks] Add callsite locations to inline remarks

Wenlei He via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 19 10:52:57 PDT 2020


wenlei created this revision.
wenlei added reviewers: wmi, davidxl, hoy.
Herald added subscribers: llvm-commits, cfe-commits, hiraditya.
Herald added projects: clang, LLVM.

Add call site location info into inline remarks so we can differentiate inline sites.
This can be useful for inliner tuning. We can also reconstruct full hierarchical inline 
tree from parsing such remarks. The messege of inline remark is also tweaked so we can 
differentiate SampleProfileLoader inline from CGSCC inline.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82213

Files:
  clang/test/Frontend/optimization-remark-with-hotness-new-pm.c
  clang/test/Frontend/optimization-remark-with-hotness.c
  llvm/include/llvm/Analysis/InlineAdvisor.h
  llvm/lib/Analysis/InlineAdvisor.cpp
  llvm/lib/Transforms/IPO/SampleProfile.cpp
  llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll
  llvm/test/Transforms/SampleProfile/remarks.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82213.272131.patch
Type: text/x-patch
Size: 8923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200619/9ced724d/attachment.bin>


More information about the cfe-commits mailing list