#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: |
----------------------------------------------+-----------------------------
Comment(by igloo@…):
commit 7a7f6d703a99045cb9f590c819b795409a090022
{{{
Author: Ian Lynagh <[email protected]>
Date: Fri Feb 17 22:46:27 2012 +0000
Add a primop for unsigned quotRem; part of #5598
Only amd64 has an efficient implementation currently.
compiler/cmm/CmmMachOp.hs | 1 +
compiler/cmm/OldCmmUtils.hs | 4 +++
compiler/cmm/PprC.hs | 1 +
compiler/codeGen/CgPrimOp.hs | 8 ++++++
compiler/llvmGen/LlvmCodeGen/CodeGen.hs | 1 +
compiler/nativeGen/PPC/CodeGen.hs | 1 +
compiler/nativeGen/SPARC/CodeGen.hs | 1 +
compiler/nativeGen/X86/CodeGen.hs | 38
++++++++++++++++++------------
compiler/prelude/primops.txt.pp | 4 +++
9 files changed, 44 insertions(+), 15 deletions(-)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5598#comment:14>
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