<div dir="ltr"><br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><i><font size="2" face="monospace, monospace"><b>Vivek Pandya</b></font></i><div><br></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Mar 23, 2016 at 9:34 AM, Mehdi Amini <span dir="ltr"><<a href="mailto:mehdi.amini@apple.com" target="_blank">mehdi.amini@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Mar 22, 2016, at 6:04 PM, Matthias Braun via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> No need to apologize this thread surely deserved some answers :)<br>
><br>
> From my perspective this project sounds doable. I would expect the register allocation parts to be not too hard: I imagine this being just distilling a new clobber regmask after allocating a function. I would expect the challenging (or annoying) part to get a machine module pass (or a similar mechanism to influence the order in which functions are processed) and a callgraph in the backend.<br>
<br>
</span>I have a very tiny patch that wrap the backend in a CGSCC pass manager, which will achieve what is needed here I believe: i.e. running CodeGen for every callee before any caller.<br>
I can rebase it if anyone is interested.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>Yes most of InterProcedural analysis in GCC uses call graphs so this can be very useful. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
--<br>
Mehdi<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
> So this might end up being more pass manager / infrastructure work than register allocation.<br>
><br>
> I'd be happy to answer detail questions or give guidance on the register allocation aspects.<br>
><br>
> - Matthias<br>
><br>
>> On Mar 22, 2016, at 5:27 PM, Sanjoy Das <<a href="mailto:sanjoy@playingwithpointers.com">sanjoy@playingwithpointers.com</a>> wrote:<br>
>><br>
>> Apologies: didn't notice how old this thread is before replying.<br>
>><br>
>> On Tue, Mar 22, 2016 at 5:24 PM, Sanjoy Das<br>
>> <<a href="mailto:sanjoy@playingwithpointers.com">sanjoy@playingwithpointers.com</a>> wrote:<br>
>>> Hi Vivek,<br>
>>><br>
>>> [+CC Matthias, Quentin]<br>
>>><br>
>>> Inter-procedural register allocation can be a big win, but my estimate<br>
>>> is that it will be challenging to complete within one summer unless<br>
>>> you're already familiar with LLVM's register allocator.<br>
>>><br>
>>> I've CC'ed some people who can give you some more detailed information.<br>
>>><br>
>>> -- Sanjoy<br>
>>><br>
>>><br>
>>> On Tue, Feb 9, 2016 at 9:17 PM, vivek pandya via llvm-dev<br>
>>> <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
>>>> Hello Community,<br>
>>>><br>
>>>> I would like to know status of the project and also importance of it. If the<br>
>>>> project is still open I would like to work on GSoC 2016 proposal for<br>
>>>> Inter-procedural Register Allocation, in that case please also suggest<br>
>>>> possible mentor or let me know if anyone is willing to be mentor for this.<br>
>>>><br>
>>>> Sincerely,<br>
>>>> Vivek Pandya<br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> LLVM Developers mailing list<br>
>>>> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
>>>> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
>>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Sanjoy Das<br>
>>> <a href="http://playingwithpointers.com" rel="noreferrer" target="_blank">http://playingwithpointers.com</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> Sanjoy Das<br>
>> <a href="http://playingwithpointers.com" rel="noreferrer" target="_blank">http://playingwithpointers.com</a><br>
><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br>
</div></div></blockquote></div><br></div></div>