[GHC] #13209: ghc panic with optimization.

GHC ghc-devs at haskell.org
Mon Jan 30 13:11:23 UTC 2017


#13209: ghc panic with optimization.
-------------------------------------+-------------------------------------
        Reporter:  1chb              |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  x86
 Type of failure:  GHC rejects       |            Test Case:
  valid program                      |
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by j.waldmann):

 The compiler does ( `./compiler/simplCore/Simplify.hs` )
 {{{
 completeCall ... = do
   case maybe_inline of
     Just .. -> do checkedTick ...
     Nothing -> ...
 }}}
 where `checkedTick` could raise the panic. It might be possible to check
 the tick counter, and take the `Nothing` branch if it's full. But do we
 want this?
 I guess it would prohibit *all* inlinings and rule applications from that
 point on
 (and until the end of the module?) which might produce really bad code.

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


More information about the ghc-tickets mailing list