[PATCH] D135968: [FuncSpec][NFC] Refactor finding specialisation opportunities

Momchil Velikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 21 08:11:56 PDT 2022


chill added a comment.

In D135968#3865784 <https://reviews.llvm.org/D135968#3865784>, @chill wrote:

>> Just out of curiousity, did you measure compile times improvements with this, which I guess is the reason for doing this?
>
> No, not measured yet, but planning to.

I did some measurements on sqlite3  (with the whole series ending in D136332 <https://reviews.llvm.org/D136332>), with `-O3` and `-O3 -mllvm -enable-function-specialization`).
I got about 0.42% overall regression compared to not running the `FunctionSpecialization` pass and about 0.45% improvement when the pass is enabled in both compilers.
Comparing just the pass (via `clang ... -ftime-report 2>&1 | grep FunctionSpecialization`) shows about 2.2% improvement.


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

https://reviews.llvm.org/D135968



More information about the llvm-commits mailing list