diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2021-12-20 15:19:20 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-01-06 02:24:54 -0500 |
commit | ec26c38bfac24d958377abbae6fce3a6fcf4ae39 (patch) | |
tree | 42f27638f1605424be0cfc4323922ed01985a551 /compiler/GHC/StgToByteCode.hs | |
parent | c080b44314248545c6ddea0c0eff02f8c9edbca4 (diff) | |
download | haskell-ec26c38bfac24d958377abbae6fce3a6fcf4ae39.tar.gz |
Use primOpIds cache more often (#20857)
Use primOpId instead of mkPrimOpId in a few places to benefit from
Id caching.
I had to mess a little bit with the module hierarchy to fix cycles and
to avoid adding too many new dependencies to count-deps tests.
Diffstat (limited to 'compiler/GHC/StgToByteCode.hs')
-rw-r--r-- | compiler/GHC/StgToByteCode.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/StgToByteCode.hs b/compiler/GHC/StgToByteCode.hs index 3e027d07b5..a69fe69872 100644 --- a/compiler/GHC/StgToByteCode.hs +++ b/compiler/GHC/StgToByteCode.hs @@ -42,6 +42,7 @@ import GHC.Types.ForeignCall import GHC.Core import GHC.Types.Literal import GHC.Builtin.PrimOps +import GHC.Builtin.PrimOps.Ids (primOpId) import GHC.Core.Type import GHC.Types.RepType import GHC.Core.DataCon @@ -54,7 +55,6 @@ import GHC.Core.TyCo.Ppr ( pprType ) import GHC.Utils.Error import GHC.Types.Unique import GHC.Builtin.Uniques -import GHC.Builtin.Utils ( primOpId ) import GHC.Data.FastString import GHC.Utils.Panic import GHC.Utils.Panic.Plain |