llvm-project/llvm/lib/LTO
Piotr Padlewski d9830eb79f [thinlto] Basic thinlto fdo heuristic
Summary:
This patch improves thinlto importer
by importing 3x larger functions that are called from hot block.

I compared performance with the trunk on spec, and there
were about 2% on povray and 3.33% on milc. These results seems
to be consistant and match the results Teresa got with her simple
heuristic. Some benchmarks got slower but I think they are just
noisy (mcf, xalancbmki, omnetpp)- running the benchmarks again with
more iterations to confirm. Geomean of all benchmarks including the noisy ones
were about +0.02%.

I see much better improvement on google branch with Easwaran patch
for pgo callsite inlining (the inliner actually inline those big functions)
Over all I see +0.5% improvement, and I get +8.65% on povray.
So I guess we will see much bigger change when Easwaran patch will land
(it depends on new pass manager), but it is still worth putting this to trunk
before it.

Implementation details changes:
- Removed CallsiteCount.
- ProfileCount got replaced by Hotness
- hot-import-multiplier is set to 3.0 for now,
didn't have time to tune it up, but I see that we get most of the interesting
functions with 3, so there is no much performance difference with higher, and
binary size doesn't grow as much as with 10.0.

Reviewers: eraman, mehdi_amini, tejohnson

Subscribers: mehdi_amini, llvm-commits

Differential Revision: https://reviews.llvm.org/D24638

llvm-svn: 282437
2016-09-26 20:37:32 +00:00
..
CMakeLists.txt [ThinLTO] Add caching to the new LTO API 2016-08-23 21:30:12 +00:00
Caching.cpp Add qualification to fix MSVC build. 2016-09-23 23:23:23 +00:00
LLVMBuild.txt [lib/LTO] Add a way to run a custom pipeline 2016-09-07 17:46:16 +00:00
LTO.cpp LTO: Simplify caching interface. 2016-09-23 21:33:43 +00:00
LTOBackend.cpp LTO: Simplify caching interface. 2016-09-23 21:33:43 +00:00
LTOCodeGenerator.cpp [lib/LTO] Simplify. No functional change intended. 2016-09-02 16:37:31 +00:00
LTOModule.cpp Move the Mangler from the AsmPrinter down to TLOF and clean up the 2016-09-16 07:33:15 +00:00
ThinLTOCodeGenerator.cpp [thinlto] Basic thinlto fdo heuristic 2016-09-26 20:37:32 +00:00
UpdateCompilerUsed.cpp Move legacy LTO interface headers to legacy/ directory. 2016-07-14 21:21:16 +00:00