[GHC] #10148: Optimization causes repeated computation

GHC ghc-devs at haskell.org
Mon Mar 9 22:15:46 UTC 2015


#10148: Optimization causes repeated computation
-------------------------------------+-------------------------------------
        Reporter:  akio              |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1-rc1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by nomeata):

 It must be related to the `error` call in `adjustA`. Removing the branch,
 or replacing it by something terminating, even replacing it by `undefined`
 makes the bug disappear.

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


More information about the ghc-tickets mailing list