#5615: ghc produces poor code for `div` with constant powers of 2.
-------------------------+--------------------------------------------------
Reporter: Lennart | Owner: daniel.is.fischer
Type: bug | Status: new
Priority: normal | Milestone: 7.6.1
Component: Compiler | Version: 7.4.1-rc1
Keywords: | Os: Unknown/Multiple
Architecture: x86 | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
-------------------------+--------------------------------------------------
Comment(by augustss):
Does the backend optimization of quot interact nicely with how div is
encoded using quot? I want div (with a power of 2) to turn into a shift,
because div (unlike quot) is equivalent to a shift.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5615#comment:12>
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