<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>