constant pooling in GHC

Phyx lonetiger at gmail.com
Sat Sep 15 14:32:33 UTC 2018


Hi All,

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.

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.

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.

Thanks,
Tamar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20180915/cf02e79a/attachment.html>


More information about the ghc-devs mailing list