[PATCH] D145375: [FuncSpec] Minor refactoring in statistics and debug messages.

Alexandros Lamprineas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 06:24:18 PST 2023


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

- 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).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145375

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145375.502615.patch
Type: text/x-patch
Size: 3917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230306/1d22d345/attachment.bin>


More information about the llvm-commits mailing list