[GHC] #3698: Bad code generated for zip/filter/filter loop

GHC trac at galois.com
Fri Nov 27 04:33:26 EST 2009


#3698: Bad code generated for zip/filter/filter loop
---------------------------------+------------------------------------------
    Reporter:  rl                |       Owner:                         
        Type:  bug               |      Status:  new                    
    Priority:  normal            |   Milestone:                         
   Component:  Compiler          |     Version:  6.13                   
  Resolution:                    |    Keywords:                         
          Os:  Unknown/Multiple  |    Testcase:                         
Architecture:  Unknown/Multiple  |     Failure:  Runtime performance bug
---------------------------------+------------------------------------------
Comment (by rl):

 Hmm, yes, I guess it would be good to detect that, too. FWIW, essentially
 the same code is generated if we make `zip_filter` monomorphic:
 {{{
 zip_filter :: Double -> [Double] -> [Double] -> [Double]
 }}}
 Here, we know what `(<)` is so we don't have to detect this.

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


More information about the Glasgow-haskell-bugs mailing list