[PATCH] D34312: [NewPM/Inliner] Reduce threshold for cold callsites in the non-PGO case
Chandler Carruth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 27 14:30:18 PDT 2017
chandlerc accepted this revision.
chandlerc added a comment.
This revision is now accepted and ready to land.
Also LGTM generally. Feel free to submit with updated (or current) threshold based on what makes the most sense to you. Also a minor comment below, lemme know if you want another look at the code if caching that ends up useful but weird/complex.
================
Comment at: lib/Analysis/InlineCost.cpp:658
+ CallerBFI->getBlockFreq(&(CS.getCaller()->getEntryBlock()));
+ return CallSiteFreq < CallerEntryFreq * ColdProb;
+}
----------------
As mentioned earlier, is it possible to cache this so that we don't re-compute the scaled entry frequency for each callsite? Maybe there isn't a good place to cache it...
https://reviews.llvm.org/D34312
More information about the llvm-commits
mailing list