junbuml added a comment.

I see what you mean. Now, I doubt if 
BranchProbabilityInfo::calcColdCallHeuristics() set  the Cold  before inliner. 
As far as I check, BranchProbabilityInfo is executed after inliner.

Another issue is that even if we can add the Cold in callsites in exception 
handling regions before inliner, the default ColdThreshold (225) in the inliner 
is still not tuned (r200898), so I cannot see the expected performance 
improvement only with the Cold.

If we don't have any plan to tune the ColdThreshold in near future, we may need 
to use other ways to conservatively inline in exception handling regions. So, 
for example, in this patch I simply added both Cold and NoInline.


http://reviews.llvm.org/D13304



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to