[PATCH] D24940: [thinlto] Add cold-callsite import heuristic

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 28 20:29:26 PDT 2016


mehdi_amini added inline comments.

================
Comment at: lib/Transforms/IPO/FunctionImport.cpp:305
@@ -294,3 +304,3 @@
     if (!CalleeSummary) {
       DEBUG(dbgs() << "ignored! No qualifying callee with summary found.\n");
       continue;
----------------
I agree... when there is an actual value to read these lines! Otherwise apply this principles means inlining the whole program as nested lambda into the main() :p
So it is always a signal/noise ratio evaluation. Having a lambda means the code is available, but it means the body of the current function is longer.
(Here I felt I can read and understand the code in the loop without the need to see the body of a function with a name GetBonusMultiplier)


https://reviews.llvm.org/D24940





More information about the llvm-commits mailing list