<div dir="ltr"><div>Yes.<br><br></div><div>It would be nice if there was a status matrix to track what optimizations aren't enabled by default for other frontends that could possibly benefit from them.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 July 2016 at 16:57, Abe Skolnik <span dir="ltr"><<a href="mailto:a.skolnik@samsung.com" target="_blank">a.skolnik@samsung.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Kevin,<br>
<br>
Thanks for your quick and thoughtful reply.<br>
<br>
Please tell me whether or not I have understood you correctly: I think what you are saying is that it might be possible to do what I`m talking about at the LLVM level, have it turned off by default so it`s safe, have Clang turn it on when the optimization level says to do so [since AFAIK all Clang-supported languages allow compilers to re-order globals], and let other front ends turn it on if their respective language specifications also allow compilers to re-order globals.<br>
<br>
If that`s a correct understanding, then I think that`s a great idea.  Thanks either way, i.e. even if I _have_ misunderstood. ;-)<br>
<br>
Regards,<br>
<br>
Abe<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
On 07/25/2016 06:52 PM, Kevin Choi wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Abe,<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't see why you couldn't make a frontend query in the pass-manager to<br>
selectively enable such globals reordering/aligning pass. If this is a<br>
discouraged practice noted in docs somewhere and LLVM's goal is to be truly<br>
frontend/platform agnostic, please do correct me. AFAIK, Pass Manager<br>
selects some optimizations based on Optimization Levels (-O2,-O3,etc), so<br>
extending this shouldn't be a challenge.<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards,<br>
Kevin<br>
</blockquote>
</div></div></blockquote></div><br></div>