[llvm][Inliner] Make PriorityInlineOrder lazily updated
authorLiqiang Tao <taolq@outlook.com>
Wed, 23 Jun 2021 00:59:31 +0000 (08:59 +0800)
committerLiqiang Tao <taolq@outlook.com>
Wed, 23 Jun 2021 00:59:53 +0000 (08:59 +0800)
commita0d96fdd3a4cda4d882076eff436301e1ec19055
tree711194e0a36ea0391580f38e94f3a3a5fe862600
parent36b538f583a7dfadf8f6c677b61110ee239e7e4d
[llvm][Inliner] Make PriorityInlineOrder lazily updated

This patch makes PriorityInlineOrder lazily updated.
The PriorityInlineOrder would lazily update the desirability of a call site if it's decreasing.

Reviewed By: kazu

Differential Revision: https://reviews.llvm.org/D104654
llvm/lib/Transforms/IPO/Inliner.cpp