llvm.org GIT mirror llvm / f9c3b22
Increase inliner thresholds by 25. This makes the inliner about as agressive as it was before my changes to the inliner cost calculations. These levels give the same performance and slightly smaller code than before. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95320 91177308-0d34-0410-b5e6-96231b3b80d8 Jakob Stoklund Olesen 10 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3737 STATISTIC(NumMergedAllocas, "Number of allocas merged together");
3838
3939 static cl::opt
40 InlineLimit("inline-threshold", cl::Hidden, cl::init(200), cl::ZeroOrMore,
41 cl::desc("Control the amount of inlining to perform (default = 200)"));
40 InlineLimit("inline-threshold", cl::Hidden, cl::init(225), cl::ZeroOrMore,
41 cl::desc("Control the amount of inlining to perform (default = 225)"));
4242
4343 Inliner::Inliner(void *ID)
4444 : CallGraphSCCPass(ID), InlineThreshold(InlineLimit) {}
175175 if (Caller && !Caller->isDeclaration() &&
176176 Caller->hasFnAttr(Attribute::OptimizeForSize) &&
177177 InlineLimit.getNumOccurrences() == 0)
178 return 50;
178 return 75;
179179 else
180180 return InlineThreshold;
181181 }