[all-commits] [llvm/llvm-project] 7c8a69: [Remarks] Add callsite locations to inline remarks

WenleiHe via All-commits all-commits at lists.llvm.org
Sat Jun 20 23:49:58 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c8a6936bf6b578518673f442c6c292d62cdd465
      https://github.com/llvm/llvm-project/commit/7c8a6936bf6b578518673f442c6c292d62cdd465
  Author: Wenlei He <aktoon at gmail.com>
  Date:   2020-06-20 (Sat, 20 Jun 2020)

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

  Log Message:
  -----------
  [Remarks] Add callsite locations to inline remarks

Summary:
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.

Reviewers: wmi, davidxl, hoy

Subscribers: hiraditya, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D82213




More information about the All-commits mailing list