[GHC] #15754: Move free variable computation to after STG passes
GHC
ghc-devs at haskell.org
Mon Oct 22 10:21:47 UTC 2018
#15754: Move free variable computation to after STG passes
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.8.1
Component: Compiler | Version: 8.6.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #9718 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
Free-var info is inherently fragile, and is easily regenerated. It's a bit
like `OccInfo` on a binder in `Core`.
Best, I think, to generate it where needed, and explicitly nuke it in any
pass that can't easily guarantee to preserve it. I suppose we could have
a type index to specify whether or not the FV info was in there.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15754#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list