[GHC] #15226: GHC doesn't know that seq# produces something in WHNF
GHC
ghc-devs at haskell.org
Fri Jun 8 23:27:57 UTC 2018
#15226: GHC doesn't know that seq# produces something in WHNF
-------------------------------------+-------------------------------------
Reporter: dfeuer | Owner: (none)
Type: bug | Status: merge
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.4.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Runtime | Unknown/Multiple
performance bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4796
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by dfeuer):
Replying to [comment:14 simonpj]:
> > So if we do a binder swap, we should do it for all the variables the
scrutinee is strict
>
> This is a bridge too far! Strictness analysis will work this out, I
think. Eg that `let e` will turn into a case.
I don't think so. `seq#` is intentionally lazy in its argument, to allow
explicit ordering in an `IO` context. This seems pretty important in
combination with `spark#`, for example.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15226#comment:15>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list