<div dir="ltr">As per the GHC manual, it should be -fno-specialise for disabling all specialization, and -fno-cross-module-specialise for disabling only the specialization of imported INLINABLE functions. Both of these flags are "on" when using -O and -O2.<div><br></div><div>-harendra</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 September 2017 at 07:15, Conal Elliott <span dir="ltr"><<a href="mailto:conal@conal.net" target="_blank">conal@conal.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is there a GHC flag for inhibiting the specializer (but not all optimizations)? I'm seeing huge output from the Specialise phase killed at 4GB and growing. The output starts as follows:<div><br></div><div><div style="font-size:16px">Result size of Specialise</div><div style="font-size:16px">  = {terms: 29,639, types: 10,921,552, coercions: 4,425,185}</div></div><div style="font-size:16px"><br></div><div style="font-size:16px">Sounds like a lot to me. Is it?. I get this behavior with -O2 and with -O.</div><span class="HOEnZb"><font color="#888888"><div style="font-size:16px"><br></div><div style="font-size:16px">-- Conal</div></font></span></div>
<br>______________________________<wbr>_________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.<wbr>org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/glasgow-<wbr>haskell-users</a><br>
<br></blockquote></div><br></div>