#5623: GHC 7.2.1 Performance Regression: Vector
---------------------------------+------------------------------------------
    Reporter:  dterei            |       Owner:                         
        Type:  bug               |      Status:  new                    
    Priority:  normal            |   Component:  Compiler               
     Version:  7.3               |    Keywords:                         
    Testcase:                    |   Blockedby:                         
          Os:  Unknown/Multiple  |    Blocking:                         
Architecture:  Unknown/Multiple  |     Failure:  Runtime performance bug
---------------------------------+------------------------------------------

Comment(by rl):

 Come to think of it, here is a much simpler example:

 {{{
 foo :: Ptr Float -> IO Float
 foo p = liftM2 (+) (peekElemOff q 0) (peekElemOff q 1)
   where
     q = p `plusPtr` 4
 }}}

 Again, the HEAD computes `q` twice. This looks like a rather bad bug to
 me, I hope this will be fixed in time for 7.4!

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5623#comment:2>
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