#5598: Function quotRem is inefficient
----------------------------------------------+-----------------------------
Reporter: boris | Owner: igloo
Type: task | Status: new
Priority: normal | Milestone: 7.6.1
Component: Compiler | Version: 7.0.3
Keywords: division, performance, primop | Os: Unknown/Multiple
Architecture: x86 | Failure: Runtime
performance bug
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
----------------------------------------------+-----------------------------
Changes (by igloo):
* difficulty: => Unknown
Comment:
I had a look at this. It actually seemed simpler to me to just use a
`MachOp` after all, and immediately assign the result. I also had to
implement an `Assign2` constructor, and add a constructor to the `CmmType`
type; is that what you intended?
I've attached a patch with my attempt, although it only implements the new
primop for the X86 NCG.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5598#comment:9>
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