[GHC] #11770: Demand analysis: Wrong one-shot annotation due to fixed-point iteration
GHC
ghc-devs at haskell.org
Wed Mar 30 08:39:44 UTC 2016
#11770: Demand analysis: Wrong one-shot annotation due to fixed-point iteration
-------------------------------------+-------------------------------------
Reporter: nomeata | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
Replying to [comment:3 nomeata]:
> But would that not mean that useful one-shot information determined by
the demand analyzer will not be reflected here, and hence not used in
later passes, e.g. by the simplifier when trying to to floating a let into
a lambda?
No, that'll be fine: the occurrence analyser runs before each pass of the
simplifier.
> Note that due to the magic `oneShot` function, there might be one-shot
info worth preserving.
Good point! Please comment this prominently with `updOneShotInfo`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11770#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list