#5598: Function quotRem is inefficient
----------------------------------------------+-----------------------------
Reporter: boris | Owner:
Type: task | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.0.3
Keywords: division, performance, primop | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: x86 | Failure: Runtime
performance bug
----------------------------------------------+-----------------------------
Comment(by igloo):
I've run into this before, but it's currently tricky to fix as `CmmMachOp`
can only return a single result. The nicest way to fix this would be to
relax that restriction, so that operations like quotRem and addWithCarry
can be implemented as `CmmMachOp`s.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5598#comment:3>
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