[GHC] #3065: Reorder tests in quot to improve code

GHC trac at galois.com
Thu Dec 17 05:59:21 EST 2009


#3065: Reorder tests in quot to improve code
--------------------------------------+-------------------------------------
  Reporter:  simonpj                  |          Owner:                  
      Type:  bug                      |         Status:  new             
  Priority:  normal                   |      Milestone:  6.12 branch     
 Component:  libraries/base           |        Version:  6.10.1          
Resolution:                           |       Keywords:                  
Difficulty:  Unknown                  |             Os:  Unknown/Multiple
  Testcase:                           |   Architecture:  Unknown/Multiple
   Failure:  Runtime performance bug  |  
--------------------------------------+-------------------------------------
Comment (by simonmar):

 Replying to [comment:15 isaacdupree]:
 > We need to pick the same semantics for all CPUs.  I worry about whether
 the best-performing semantic differs... at least it might differ on 32-bit
 vs. 64-bit for us

 The semantics will be the same for all CPUs.  The proposed change can't
 make performance any ''worse'', but it can improve performance on some
 CPUs where the native division semantics matches what we expose in
 Haskell.

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


More information about the Glasgow-haskell-bugs mailing list