Force GC calls out of the straight line execution path

Ben Gamari ben at
Fri Jun 17 12:00:17 UTC 2016

Harendra Kumar <harendra.kumar at> writes:

> Hi Ă–mer,
> I just checked and I do not see this behavior in 8.0.1 native code, it is
> only seen in 7.10.3. So I guess this got fixed in 8.0.
> How about the llvm generated code? Can we control this behavior for llvm
> generated code as well? I first noticed this in llvm generated code with
> ghc-7.10.3. I do not yet have llvm-3.7 installed to verify the same on
> 8.0.1.
Indeed that may be the difference. It looks like the LLVM code generator
currently ignores the expected value provided by the C-- representation.
This is pretty straightforward to fix; see D2339 [1].


- Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <>

More information about the ghc-devs mailing list