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

Chris Lattner clattner at apple.com
Fri Mar 16 16:34:39 PDT 2012


On Mar 15, 2012, at 11:10 PM, Chandler Carruth wrote:

> Author: chandlerc
> Date: Fri Mar 16 01:10:13 2012
> New Revision: 152903
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=152903&view=rev
> Log:
> Start removing the use of an ad-hoc 'never inline' set and instead
> directly query the function information which this set was representing.
> This simplifies the interface of the inline cost analysis, and makes the
> always-inline pass significantly more efficient.

Nice:

> 
> -  for (SmallPtrSet<CallGraphNode*, 16>::iterator I = FunctionsToRemove.begin(),
> -       E = FunctionsToRemove.end(); I != E; ++I) {
> +  std::sort(FunctionsToRemove.begin(), FunctionsToRemove.end());

array_pod_sort please.

-Chris




More information about the llvm-commits mailing list