[GHC] #10506: SourceNotes are not applied to all identifiers
GHC
ghc-devs at haskell.org
Mon Jun 15 08:27:42 UTC 2015
#10506: SourceNotes are not applied to all identifiers
-------------------------------------+-------------------------------------
Reporter: gridaphobe | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.10.2
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by simonpj):
This tick stuff is clearly interesting and useful, but it is serving
several masters, which are expressed by `CoreSyn.Tickish`:
* `HpcTick`: HPC code coverage
* `ProfNote`: cost-centre profiling
* `Breakpoint`: breakpoint debugging
* `SourceNote`: do not get in the way of optimisation, but help with
debugging via DWARF.
They differ in the extent to which they interfere with optimisation. You
probably want either `SourceNote` or `HpcTick` here; but I'm not sure
which. It depends on the semantics you expect during optimisation. I
suspect you want `SourceNote`.
I hope you don't need a fifth one!
Simon
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10506#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list