[all-commits] [llvm/llvm-project] f46dd1: [mlgo] Incrementally update FunctionPropertiesInfo...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Tue May 31 17:27:49 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f46dd19b480496d2ba0a57d12935882e530f2b93
      https://github.com/llvm/llvm-project/commit/f46dd19b480496d2ba0a57d12935882e530f2b93
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2022-05-31 (Tue, 31 May 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/FunctionPropertiesAnalysis.h
    M llvm/include/llvm/Analysis/MLInlineAdvisor.h
    M llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp
    M llvm/lib/Analysis/MLInlineAdvisor.cpp
    M llvm/unittests/Analysis/FunctionPropertiesAnalysisTest.cpp

  Log Message:
  -----------
  [mlgo] Incrementally update FunctionPropertiesInfo during inlining

Re-computing FunctionPropertiesInfo after each inlining may be very time
consuming: in certain cases, e.g. large caller with lots of callsites,
and when the overall IR doesn't increase (thus not tripping a size bloat
threshold).

This patch addresses this by incrementally updating
FunctionPropertiesInfo.

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




More information about the All-commits mailing list