Hi Jakob,<br><br><div class="gmail_quote">On Thu, Oct 4, 2012 at 2:31 PM, Jakob Stoklund Olesen <span dir="ltr"><<a href="mailto:stoklund@2pi.dk" target="_blank">stoklund@2pi.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div style="word-wrap:break-word"><br><div><div><div>On Oct 4, 2012, at 2:27 PM, "Madhusudan C.S" <<a href="mailto:madhusudancs@gmail.com" target="_blank">madhusudancs@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">


<div>Basically, the PrologEpilogInsertion pass will add a bit mask to MachineModuleInfo describing which registers are clobbered by the function being compiled. Later, when compiling the callers, that bit mask is used to initialize the regmask operands on call instructions.</div>




</div></blockquote><div><br>So the idea is to sidestep from the calling convention a bit if we<br>already know that the called function will not be using all the<br>registers required by the convention and instead use those registers<br>




in the caller?<br></div></div></blockquote><div><br></div></div><div>That's right.</div><div><br><blockquote type="cite"><div class="gmail_quote"><div>If I am understanding this correctly, is this something desirable for<br>


LLVM, even if it is not high priority?</div></div></blockquote><div><br></div></div><div>Yes.</div><div><br><blockquote type="cite"><div class="gmail_quote"><div> Would you guys be Ok if I try<br>to implement this without disturbing the project priorities but with<br>




a little help/guidance?</div></div></blockquote><div><br></div></div><div>Absolutely.</div></div></div></blockquote><div><br>Great! Thank you very much. Then, I will do some homework on how<br>I plan to implement this, a _very_ rough sketch if not the actual<br>


design, and come back.<br><br>Btw, I just found this <a href="http://optimisticcompilers.blogspot.com/" target="_blank">http://optimisticcompilers.blogspot.com/</a> So<br>I will just take a look at what happened to that project.<br>

</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span><font color="#888888"><div><br></div><div>/jakob</div><div>
<br></div></font></span></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Thanks and regards,<br>  Madhusudan.C.S<br>