<div dir="ltr">oh ok, so CSE / sharing for string and numerical literals?</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 21, 2018 at 1:23 AM Phyx <<a href="mailto:lonetiger@gmail.com">lonetiger@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I simply mean that the same constant is not emitted more than once to memory. I.e. If a constant string is used twice, there is only one value in .rodata for it. <br><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 21, 2018, 01:20 Carter Schonwald <<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">what precisely do you mean by constant pooling? i can guess several meanings, but what do you mean specifically?</div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr">On Sat, Sep 15, 2018 at 10:33 AM Phyx <<a href="mailto:lonetiger@gmail.com" target="_blank">lonetiger@gmail.com</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><font color="#000">Hi All,</font></div><div><font color="#000"><br></font></div><div><font color="#000">I'm hoping someone here can save me some time.  I'm working on something that relies on constants in the same translation unit being pooled before assembly.</font></div><div><font color="#000"><br></font></div><div><font color="#000">I've noticed GHC does some const pooling at -O1 , but this doesn't seem to be very consistent, which leads me to believe this is a byproduct of another optimization rather than an explicit thing.</font></div><div><font color="#000"><br></font></div><div><font color="#000">I couldn't find anything obvious in the sources, so does GHC intentionally do constant pooling already? Or do I need a new pass to guarantee it.</font></div><div><font color="#000"><br></font></div><div><font color="#000">Thanks,</font></div><div><font color="#000">Tamar</font></div></div></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>