[all-commits] [llvm/llvm-project] 67fde2: [FuncSpec] Minor refactoring in statistics and deb...

Alexandros Lamprineas via All-commits all-commits at lists.llvm.org
Wed Mar 15 02:14:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67fde2b932a0b5b4ab23c2ccedeffe44dc1bde50
      https://github.com/llvm/llvm-project/commit/67fde2b932a0b5b4ab23c2ccedeffe44dc1bde50
  Author: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
    M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
    M llvm/test/Transforms/FunctionSpecialization/function-specialization-stats.ll

  Log Message:
  -----------
  [FuncSpec] Minor refactoring in statistics and debug messages.

* Remove redundant variable `NbFunctionsSpecialized` as it is no longer
  used by the cost model.
* Rename statistic `NumFuncSpecialized` to `NumSpecsCreated` as a better
  description (the old name confusingly implied number of functions we have
  created clones for).
* Same for variable `SpecializedFuncs`. Renamed to `Specializations`.
* Move debug message in the destructor (avoids repetition when MaxIters > 1).

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




More information about the All-commits mailing list