[GHC] #5598: Function quotRem is inefficient

GHC cvs-ghc at haskell.org
Tue Nov 8 15:03:12 CET 2011


#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



More information about the Glasgow-haskell-bugs mailing list