[all-commits] [llvm/llvm-project] 313c65: [InlineAdvisor] Add -inline-replay-scope=<Function...

modiking via All-commits all-commits at lists.llvm.org
Mon Oct 18 13:09:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 313c657fcea371a533ad5f3adcff44fabc6531ae
      https://github.com/llvm/llvm-project/commit/313c657fcea371a533ad5f3adcff44fabc6531ae
  Author: modimo <modimo at fb.com>
  Date:   2021-10-18 (Mon, 18 Oct 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/InlineAdvisor.h
    M llvm/include/llvm/Analysis/ReplayInlineAdvisor.h
    M llvm/include/llvm/Transforms/IPO/Inliner.h
    M llvm/lib/Analysis/InlineAdvisor.cpp
    M llvm/lib/Analysis/ReplayInlineAdvisor.cpp
    M llvm/lib/Transforms/IPO/Inliner.cpp
    M llvm/lib/Transforms/IPO/SampleProfile.cpp
    M llvm/test/Transforms/Inline/cgscc-inline-replay.ll
    A llvm/test/Transforms/SampleProfile/Inputs/inline-replay-function-scope.txt
    M llvm/test/Transforms/SampleProfile/Inputs/inline-replay.txt
    A llvm/test/Transforms/SampleProfile/Inputs/inline-topdown-inline-all.prof
    M llvm/test/Transforms/SampleProfile/inline-replay.ll

  Log Message:
  -----------
  [InlineAdvisor] Add -inline-replay-scope=<Function|Module> to control replay scope

The goal is to allow grafting an inline tree from Clang or GCC into a new compilation without affecting other functions. For GCC, we're doing this by extracting the inline tree from dwarf information and generating the equivalent remarks.

This allows easier side-by-side asm analysis and a trial way to see if a particular inlining setup provides benefits by itself.

Testing:
ninja check-all

Reviewed By: wenlei, mtrofin

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




More information about the All-commits mailing list