[LLVMdev] Setting how aggressive the inliner is in 2.1

Robert Zeh robert.a.zeh at gmail.com
Fri Jan 11 19:43:20 PST 2008


I think this will do the trick:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: inliner.patch
Type: application/octet-stream
Size: 2654 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080111/18fad7e6/attachment.obj>
-------------- next part --------------




Robert

On Jan 8, 2008, at 3:26 PM, Chris Lattner wrote:

> On Mon, 7 Jan 2008, Robert Zeh wrote:
>> Is there a way to set how aggressive the inliner pass
>> (createFunctionInliningPass) without going through the command line
>> interface?
>
> Nope.  Well, you could call cl::ParseCommandLine yourself (passing  
> in a
> static array) like llvm-gcc does, but other than that "no".
>
>> Is there any reason InlineLimit isn't an argument to the
>> createFunctionInliningPass function?
>
> Nope :).  That would be a great enhancement.
>
> -Chris
>
> -- 
> http://nondot.org/sabre/
> http://llvm.org/
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list