Force GC calls out of the straight line execution path
Ben Gamari
ben at smart-cactus.org
Fri Jun 17 12:00:17 UTC 2016
Harendra Kumar <harendra.kumar at gmail.com> 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].
Cheers,
- Ben
[1] https://phabricator.haskell.org/D2339
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20160617/4d7a4b74/attachment.sig>
More information about the ghc-devs
mailing list