[all-commits] [llvm/llvm-project] 7d541e: [inliner] Mandatory inlining decisions produce rem...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Tue Oct 5 14:01:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d541eb4d49aaaab6a51a3568b9214fd8691e2d3
      https://github.com/llvm/llvm-project/commit/7d541eb4d49aaaab6a51a3568b9214fd8691e2d3
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M clang/test/Frontend/optimization-remark-line-directive.c
    M clang/test/Frontend/optimization-remark-new-pm.c
    M clang/test/Frontend/optimization-remark-with-hotness-new-pm.c
    M clang/test/Frontend/optimization-remark.c
    M llvm/include/llvm/Analysis/InlineAdvisor.h
    M llvm/lib/Analysis/InlineAdvisor.cpp
    M llvm/lib/Transforms/IPO/AlwaysInliner.cpp
    M llvm/lib/Transforms/IPO/Inliner.cpp
    M llvm/lib/Transforms/IPO/SampleProfile.cpp
    A llvm/test/Transforms/Inline/inline-remark-mandatory.ll

  Log Message:
  -----------
  [inliner] Mandatory inlining decisions produce remarks

This also removes the need to disable the mandatory inlining phase in
tests.

In a departure from the previous remark, we don't output a 'cost' in
this case, because there's no such thing. We just report that inlining
happened because of the attribute.

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




More information about the All-commits mailing list