[GHC] #11179: Allow plugins to access "dead code"
GHC
ghc-devs at haskell.org
Thu Feb 2 23:51:05 UTC 2017
#11179: Allow plugins to access "dead code"
-------------------------------------+-------------------------------------
Reporter: lerkok | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
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):
Rather than mess with `simpleOptPgm` I think it might be better just to
ask the occurrence analyser (which `simplOptPgm` uses) not to drop dead
code, at least not at top level. Tha can't be hard. Just pass a boolean
into `occAnalBind`.
Simon
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11179#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list