4 Commits

Author SHA1 Message Date
Roman Lebedev
e5369823bc
[NFC] Port all Inline tests to -passes= syntax 2022-12-08 03:09:27 +03:00
Dawid Jurczak
b7e7f4e1b6 [InlineCost] Improve debugging experience by adding print about initial inlining cost
Differential Revision: https://reviews.llvm.org/D127597
2022-06-24 16:27:26 +02:00
Roman Lebedev
ba5b015b0d
[InlineCost] CallAnalyzer: use TTI info for extractvalue - they are free (PR50099)
It seems incorrect to use TTI data in some places,
and override it in others. In this case, TTI says
that `extractvalue` are free, yet we bill them.

While this doesn't address https://bugs.llvm.org/show_bug.cgi?id=50099 yet,
it reduces the cost from 55 to 50 while the threshold is 45.

Differential Revision: https://reviews.llvm.org/D101228
2021-04-30 13:55:11 +03:00
Roman Lebedev
aee44fcd34
[NFC][InlineCost] Add tests for D101228 2021-04-28 16:21:14 +03:00