<div dir="ltr">Hi Silvio,<div><br></div><div style>The change seems sensible, but I'll leave for someone with more knowledge on globals merge to approve.</div><div style><br></div><div style>There are some parts that need 80 columns trimming, though, they were not the first in that file... Not sure if people care about it that much these days.</div>
<div style><br></div><div style><div>+  for (DenseMap<unsigned, SmallVector<GlobalVariable*, 16> >::iterator</div><div>+       I = Globals.begin(), E = Globals.end(); I != E; ++I)</div><div><br></div><div style>
Possibly moving begin/end out would be better.</div><div style><br></div><div style>cheers,</div><div style>--renato</div><div style><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 January 2013 10:25, Silviu Baranga <span dir="ltr"><<a href="mailto:silbar01@arm.com" target="_blank">silbar01@arm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The MergeGlobals pass crashes when trying to handle globals with a<br>
non-default<br>
address space. The attached patch fixes this by only merging globals that<br>
have the same address space and by preserving the address space after the<br>
merge.<br>
<br>
Please review!<br>
<br>
Thanks,<br>
Silviu<br>_______________________________________________<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>
<br></blockquote></div><br></div>