[PATCH] D125841: [mlgo] Incrementally update FunctionPropertiesInfo during inlining

Mircea Trofin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 17 15:49:52 PDT 2022


mtrofin created this revision.
mtrofin added reviewers: kazu, davidxl.
Herald added a subscriber: hiraditya.
Herald added a project: All.
mtrofin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125841

Files:
  llvm/include/llvm/Analysis/FunctionPropertiesAnalysis.h
  llvm/include/llvm/Analysis/MLInlineAdvisor.h
  llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp
  llvm/lib/Analysis/MLInlineAdvisor.cpp
  llvm/unittests/Analysis/FunctionPropertiesAnalysisTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125841.430201.patch
Type: text/x-patch
Size: 30959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220517/d86b4796/attachment-0001.bin>


More information about the llvm-commits mailing list