#4930: Case-of-case not eliminated when it could be
---------------------------------------------+------------------------------
  Reporter:  rl                              |          Owner:                  
      Type:  bug                             |         Status:  closed          
  Priority:  normal                          |      Milestone:                  
 Component:  Compiler                        |        Version:  7.1             
Resolution:  fixed                           |       Keywords:                  
  Testcase:  simplCore/should_compile/T4930  |      Blockedby:                  
Difficulty:                                  |             Os:  Unknown/Multiple
  Blocking:                                  |   Architecture:  Unknown/Multiple
   Failure:  Runtime performance bug         |  
---------------------------------------------+------------------------------
Changes (by simonpj):

  * status:  new => closed
  * testcase:  => simplCore/should_compile/T4930
  * resolution:  => fixed


Comment:

 Good point.  Fixed by
 {{{
 Tue Feb  1 12:26:37 GMT 2011  [email protected]
   * Don't make join points when the case has only one non-bottom
 alternative

   This fixes Trac #4930.  See Note [Bottom alternatives] in Simplify.lhs

     M ./compiler/coreSyn/CoreUtils.lhs -1 +20
     M ./compiler/simplCore/Simplify.lhs -7 +35
 }}}
 I don't think this is worth merging.

 Simon

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to