[GHC] #7041: GHC.Real.gcdInt is no longer optimized.

GHC cvs-ghc at haskell.org
Fri Jul 20 16:37:10 CEST 2012


#7041: GHC.Real.gcdInt is no longer optimized.
-------------------------------+--------------------------------------------
  Reporter:  int-e             |          Owner:  igloo           
      Type:  bug               |         Status:  closed          
  Priority:  high              |      Milestone:  7.6.1           
 Component:  libraries/base    |        Version:  7.5             
Resolution:  fixed             |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown         
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:                  
-------------------------------+--------------------------------------------
Changes (by igloo):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 The short answer is that gcd is different because only 1 Integer backend
 supports it; the others use the generic gcd implementation. This means
 that we get a little ugliness one way or another.

 But I've now changed the way it works so that, if
 `OPTIMISE_INTEGER_GCD_LCM` is defined, then we require that the integer
 library exports `gcdInt` as well as `gcdInteger`. So now we directly call
 the function that we want, rather than using rules.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7041#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list