<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 31 October 2013 08:35, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Lots of deletes! That makes me smile.<br>
<br>
</div>Same here :-)<br>
<div class="im"><br>
> Also, removing a C API call. That's never been in a release, right?<br>
<br>
</div>Correct. The feature was first implemented with an API close to what<br>
the gold plugin implements, but then I figure out I could use the<br>
existing LTO_SYMBOL_SCOPE_DEFAULT_CAN_BE_HIDDEN by moving a bit more<br>
work to the plugin. Fortunately the API has not been exposed in any<br>
release yet.<br>
<div class="im"><br>
> @@ -162,6 +163,8 @@ LTOModule *LTOModule::makeLTOModule(MemoryBuffer<br>
> *buffer,<br>
><br>
>    TargetMachine *target = march->createTargetMachine(TripleStr, CPU,<br>
> FeatureStr,<br>
>                                                       options);<br>
> +  m->MaterializeAllPermanently();<br>
> +<br>
>    LTOModule *Ret = new LTOModule(m.take(), target);<br>
>    if (Ret->parseSymbols(errMsg)) {<br>
>      delete Ret;<br>
><br>
> Hah! You should talk to that guy who made LTO work with lazily loaded<br>
> bitcode. ;-)<br>
<br>
</div>Yes, this is the trade-off. I can be fixed with the address-taken bit<br>
proposal for example. For now the benefit of not having the extra C<br>
api in 3.4 seems worth it.<br>
<div class="im"><br>
> +// For example: Internalizing a function with external linkage. Only if we<br>
> are<br>
> +// told it is only used from within this module, it is safe to do it.<br>
><br>
> "it is" -> "is it".<br>
<br>
</div>Where? Both occurrences look correct to me? (but I am not too sure<br>
about the comma).</blockquote><div><br></div><div>Reading aloud "only if we are told [...] is it safe to do it" sounds much more natural to me, but I'll agree it's correct either way. Certainly not a patch blocker!<br>

</div><div> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">
> LGTM from me assuming that function has never been in a release before, but<br>
> I'd also like to see OtherNick sign off.<br>
<br>
</div>Thanks!<br>
<br>
Nick Kledzik, is this OK with you?<br>
<br>
> Nick<br>
<br>
Cheers,<br>
Rafael<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>