[GHC] #15569: Constant folding optimises 1 into 3

GHC ghc-devs at haskell.org
Thu Sep 13 11:06:59 UTC 2018


#15569: Constant folding optimises 1 into 3
-------------------------------------+-------------------------------------
        Reporter:  snowleopard       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.6.1-beta1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #9136             |  Differential Rev(s):  Phab:D5109
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by snowleopard):

 Thanks @sgraf! I think we can proceed with the testing-based solution for
 now, but I hope we will revisit constant folding rules in future and
 reimplement them in a more type-safe way. I can volunteer to do that once
 most of the urgent work on Hadrian is complete.

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


More information about the ghc-tickets mailing list