[PATCH] D145379: [FuncSpec] Cost model improvements.

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


labrinea added a comment.

**Old cost model (LTO)**

//Compilation//
FnSpecialization: Specialized 1 functions in module test-suite/CTMark/SPASS/terminator.c
FnSpecialization: Specialized 5 functions in module test-suite/CTMark/ClamAV/libclamav_message.c
FnSpecialization: Specialized 1 functions in module test-suite/CTMark/SPASS/rules-inf.c
FnSpecialization: Specialized 1 functions in module test-suite/CTMark/sqlite3/sqlite3.c

//Linking//
FnSpecialization: Specialized 1 functions in module ld-temp.o (ClamAV)
FnSpecialization: Specialized 1 functions in module ld-temp.o (sqlite3)
FnSpecialization: Specialized 3 functions in module ld-temp.o (lencod)

**New cost model (LTO)**

//Compilation//
FnSpecialization: Created 1 specializations in module test-suite/CTMark/ClamAV/libclamav_message.c

//Linking//
FnSpecialization: Created 2 specializations in module ld-temp.o (ClamAV)
FnSpecialization: Created 2 specializations in module ld-temp.o (sqlite3)
FnSpecialization: Created 3 specializations in module ld-temp.o (lencod)

**Instruction Count % delta**

| ClamAV           | +0.381 |
| 7zip             | -0.012 |
| tramp3d-v4       | -0.007 |
| kimwitu++        | +0.097 |
| sqlite3          | +0.170 |
| mafft            | +0.026 |
| lencod           | -0.054 |
| SPASS            | -0.673 |
| consumer-typeset | +0.054 |
| Bullet           | -0.012 |
| geomean          | -0.003 |
|

(The specializations happening at link time seem to be affecting the total compilation time a lot more than those happening pre-link time).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145379/new/

https://reviews.llvm.org/D145379



More information about the llvm-commits mailing list