#5237: Inefficient code generated for x^2
-------------------------------+--------------------------------------------
Reporter: scpmw | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.0.3 | Keywords:
Testcase: | Blockedby:
Os: Linux | Blocking:
Architecture: x86_64 (amd64) | Failure: Runtime performance bug
-------------------------------+--------------------------------------------
Comment(by daniel.is.fischer):
Some rules for small exponents. Maybe rules for more exponents and
exponent types would be good, but I didn't want to increase the number of
rules too much.
> it ends up using Integer of all things as the index type (defaulting at
work, probably)
Yes, if the type isn't otherwise restricted, that's what happens.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5237#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