[GHC] #9291: Don't reconstruct sum types if the type subtly changes

GHC ghc-devs at haskell.org
Fri Sep 26 08:20:25 UTC 2014


#9291: Don't reconstruct sum types if the type subtly changes
-------------------------------------+-------------------------------------
              Reporter:  schyler     |            Owner:
                  Type:  feature     |           Status:  new
  request                            |        Milestone:
              Priority:  normal      |          Version:  7.8.2
             Component:  Compiler    |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Moderate (less
  Unknown/Multiple                   |  than a day)
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Replying to [comment:17 carter]:
 > could this be done ethically at the STG or CMM layer if we were able to
 keep enough information lying around at those layers?

 Yes, I think it could; both are much less strongly typed than Core. STG
 would be much better than CMM.  There isn't currently an STG optimisation
 pass, but you could add one.

 Simon

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9291#comment:18>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list