[GHC] #11731: Simplifier: Inlining trivial let can lose sharing
GHC
ghc-devs at haskell.org
Thu Mar 31 08:54:19 UTC 2016
#11731: Simplifier: Inlining trivial let can lose sharing
-------------------------------------+-------------------------------------
Reporter: nomeata | Owner:
Type: bug | Status: patch
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): Phab:D2064
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by nomeata):
Sounds like a plan. I am currently checking the effect of a very late,
non-ww, demand analyzer.
Are you sure that that is the most convenient place?
* It would no longer get erased with `-fstrictness -fno-worker-wrapper`.
Although we might argue that this is not a supported configuration.
* Since the worker-wrapper pass happens before the next occurrence
analyzer (does it?), the occurrence analyzer no longer sees the `1*`
`demandInfo` and thus cannot set the `oneShotInfo`.
Why not do it in the occurrence analyser?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11731#comment:27>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list