#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_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs