[FuncSpec][NFC] Cache code metrics for analyzed functions.
authorAlexandros Lamprineas <alexandros.lamprineas@arm.com>
Thu, 31 Mar 2022 14:27:09 +0000 (15:27 +0100)
committerAlexandros Lamprineas <alexandros.lamprineas@arm.com>
Fri, 1 Apr 2022 09:58:26 +0000 (10:58 +0100)
commitf364278c459c4ed1dfc4e0d16af5af3d23f9ec15
tree28fbe744fb3f6bff2409356e6e94b48a02a8eb07
parentcb5c4a5917889bd12c5662c8b550cde11924d570
[FuncSpec][NFC] Cache code metrics for analyzed functions.

This isn't expected to reduce compilation times as 'max-iters' is set to
one by default, but it helps with recursive functions that require higher
iteration counts.

Differential Revision: https://reviews.llvm.org/D122819
llvm/lib/Transforms/IPO/FunctionSpecialization.cpp