[GHC] #5129: "evaluate" optimized away

GHC ghc-devs at haskell.org
Mon Mar 19 18:21:31 UTC 2018


#5129: "evaluate" optimized away
-------------------------------------+-------------------------------------
        Reporter:  dons              |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.0.3
      Resolution:                    |             Keywords:  seq, evaluate
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #13930            |  Differential Rev(s):  Phab:D615,
       Wiki Page:                    |  Phab:D4514
-------------------------------------+-------------------------------------
Changes (by osa1):

 * differential:  Phab:D615 => Phab:D615, Phab:D4514


Comment:

 Submitted a patch for this. Assuming we want to keep `seq#` pure (e.g.
 `has_side_effects = False` in the primop definition) I think hiding
 evaluate from the simplifier makes sense.

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


More information about the ghc-tickets mailing list