diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2021-07-07 18:47:25 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-07-15 23:29:09 -0400 |
commit | 41d6cfc4d36ba93d82f16f9a83ea69f4e02c3810 (patch) | |
tree | 067308ecd598d42523238a96ac400a40edbe9f28 /libraries/base/GHC/Exts.hs | |
parent | de98a0ce8f184c9653477ee41602f999c7a381e1 (diff) | |
download | haskell-41d6cfc4d36ba93d82f16f9a83ea69f4e02c3810.tar.gz |
Add Word64#/Int64# primops
Word64#/Int64# are only used on 32-bit architectures. Before this patch,
operations on these types were directly using the FFI. Now we use real
primops that are then lowered into ccalls.
The advantage of doing this is that we can now perform constant folding on
Word64#/Int64# (#19024).
Most of this work was done by John Ericson in !3658. However this patch
doesn't go as far as e.g. changing Word64 to always be using Word64#.
Noticeable performance improvements
T9203(normal) run/alloc 89870808.0 66662456.0 -25.8% GOOD
haddock.Cabal(normal) run/alloc 14215777340.8 12780374172.0 -10.1% GOOD
haddock.base(normal) run/alloc 15420020877.6 13643834480.0 -11.5% GOOD
Metric Decrease:
T9203
haddock.Cabal
haddock.base
Diffstat (limited to 'libraries/base/GHC/Exts.hs')
-rwxr-xr-x | libraries/base/GHC/Exts.hs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libraries/base/GHC/Exts.hs b/libraries/base/GHC/Exts.hs index e3d0529eda..86890b6a8b 100755 --- a/libraries/base/GHC/Exts.hs +++ b/libraries/base/GHC/Exts.hs @@ -37,8 +37,6 @@ module GHC.Exts module GHC.Prim, module GHC.Prim.Ext, shiftL#, shiftRL#, iShiftL#, iShiftRA#, iShiftRL#, - uncheckedShiftL64#, uncheckedShiftRL64#, - uncheckedIShiftL64#, uncheckedIShiftRA64#, isTrue#, Void#, -- Previously exported by GHC.Prim @@ -123,8 +121,6 @@ import GHC.Prim hiding ( coerce, TYPE ) import qualified GHC.Prim import qualified GHC.Prim.Ext import GHC.Base hiding ( coerce ) -import GHC.Word -import GHC.Int import GHC.Ptr import GHC.Stack |