[all-commits] [llvm/llvm-project] c2d190: [FuncSpec] Estimate dead blocks more accurately.

Alexandros Lamprineas via All-commits all-commits at lists.llvm.org
Mon Aug 7 03:10:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2d19002aeb903a03ca8007ce99d9b979a2eef4f
      https://github.com/llvm/llvm-project/commit/c2d19002aeb903a03ca8007ce99d9b979a2eef4f
  Author: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
    M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
    M llvm/unittests/Transforms/IPO/FunctionSpecializationTest.cpp

  Log Message:
  -----------
  [FuncSpec] Estimate dead blocks more accurately.

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.

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




More information about the All-commits mailing list