[all-commits] [llvm/llvm-project] 248d55: [NFC][MLGO] Use LazyCallGraph::Node to track funct...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Tue Jan 11 19:39:28 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 248d55af3e446ad69a64f08cfcc4879f9690e580
      https://github.com/llvm/llvm-project/commit/248d55af3e446ad69a64f08cfcc4879f9690e580
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2022-01-11 (Tue, 11 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/InlineAdvisor.h
    M llvm/include/llvm/Analysis/MLInlineAdvisor.h
    M llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
    M llvm/lib/Analysis/InlineAdvisor.cpp
    M llvm/lib/Analysis/MLInlineAdvisor.cpp
    M llvm/lib/Transforms/IPO/Inliner.cpp

  Log Message:
  -----------
  [NFC][MLGO] Use LazyCallGraph::Node to track functions.

This avoids the InlineAdvisor carrying the responsibility of deleting
Function objects. We use LazyCallGraph::Node objects instead, which are
stable in memory for the duration of the Module-wide performance of CGSCC
passes started under the same ModuleToPostOrderCGSCCPassAdaptor (which
is the case here)

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




More information about the All-commits mailing list