[GHC] #9430: implement more arithmetic operations natively in the LLVM backend
GHC
ghc-devs at haskell.org
Sun Aug 10 23:08:47 UTC 2014
#9430: implement more arithmetic operations natively in the LLVM backend
-------------------------------------+-------------------------------------
Reporter: rwbarton | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler (LLVM) | Version: 7.9
Keywords: | Operating System:
Architecture: Unknown/Multiple | Unknown/Multiple
Difficulty: Moderate (less | Type of failure: Runtime
than a day) | performance bug
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
There are a number of arithmetic operations that have native
implementations on x86 but use the generic fallback on LLVM. Implementing
these with LLVM intrinsics could improve small Integer performance on ARM
substantially!
{{{
MO_Add2 @llvm.uadd.with.overflow.*
MO_AddIntC @llvm.sadd.with.overflow.*
MO_SubIntC @llvm.ssub.with.overflow.*
MO_U_Mul2 mul i64/i128?
MO_U_QuotRem2 udiv i64/i128?
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9430>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list