[PATCH] D156903: [FuncSpec] Estimate dead blocks more accurately.

Alexandros Lamprineas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 07:46:03 PDT 2023


labrinea created this revision.
labrinea added reviewers: ChuanqiXu, chill.
Herald added subscribers: hoy, ormris, hiraditya.
Herald added a project: All.
labrinea requested review of this revision.
Herald added a project: LLVM.

Currently we only consider basic blocks with a unique predecessor when 
estimating the size of dead code. However, we could expand to this to
consider blocks with a back-edge, or blocks preceded by dead blocks.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156903

Files:
  llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
  llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
  llvm/unittests/Transforms/IPO/FunctionSpecializationTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156903.546467.patch
Type: text/x-patch
Size: 6776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230802/42b20c52/attachment.bin>


More information about the llvm-commits mailing list