[llvm-commits] [llvm] r48725 - in /llvm/trunk: include/llvm/Transforms/IPO/InlinerPass.h include/llvm/Transforms/Utils/InlineCost.h lib/Transforms/IPO/InlineSimple.cpp lib/Transforms/IPO/Inliner.cpp lib/Transforms/Utils/InlineCost.cpp

Chris Lattner clattner at apple.com
Mon Mar 24 13:41:27 PDT 2008


On Mar 23, 2008, at 11:37 PM, Evan Cheng wrote:
> URL: http://llvm.org/viewvc/llvm-project?rev=48725&view=rev
> Log:
> Increasing the inline limit from (overly conservative) 200 to 300.  
> Given each BB costs 20 and each instruction costs 5, 200 means a 4  
> BB function + 24 instructions (actually less because caller's size  
> also contributes to it).

Hi Evan,

Instead of bumping up the threshold, maybe it would make sense to  
reduce or eliminate the per-bb penalty?  BB's by themselves don't make  
code bigger.

-Chris



More information about the llvm-commits mailing list