[llvm-commits] [PATCH] Take into account minimize size attribute in the inliner

Quentin Colombet qcolombet at apple.com
Wed Dec 12 16:04:26 PST 2012


Hi Eric,

Here is the patch with the test case in the backend parts.
Moreover I've attached some performance numbers of runs with Oz with and without my patch (compile time, execution time, and code size).

Cheers,

-Quentin

On Dec 12, 2012, at 11:36 AM, Quentin Colombet <qcolombet at apple.com> wrote:

> 
> On Dec 12, 2012, at 11:32 AM, Eric Christopher <echristo at gmail.com> wrote:
> 
>> 
>> 
>>  
>> I had a phasing issue as llvm output was already inlined. That's why I did a clang test since I used clang as run command.
>> I am not super familiar to llvm phasing, thus how should I produce an input for a backend test in that case?
>> 
>> 
>> Probably the easiest way would be to use clang -O0 to generate a .ll file out of your testcase, clean it up a bit to test only what you want and then run opt -inline to see what is and isn't being inlined before and after your test.
>> 
>> Make sense?
> Perfect sense, thanks!
> Actually I've just seen that.
> 
> -Quentin
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121212/cc60849e/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inline-minsize_code_size.txt
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121212/cc60849e/attachment.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121212/cc60849e/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inline-minsize_compile_time.txt
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121212/cc60849e/attachment-0001.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121212/cc60849e/attachment-0002.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inline-minsize_exec_time.txt
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121212/cc60849e/attachment-0002.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121212/cc60849e/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inline-minsize.patch
Type: application/octet-stream
Size: 9268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121212/cc60849e/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121212/cc60849e/attachment-0004.html>


More information about the llvm-commits mailing list