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 /testsuite/tests/count-deps | |
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 'testsuite/tests/count-deps')
-rw-r--r-- | testsuite/tests/count-deps/CountDepsAst.stdout | 4 | ||||
-rw-r--r-- | testsuite/tests/count-deps/CountDepsParser.stdout | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/tests/count-deps/CountDepsAst.stdout b/testsuite/tests/count-deps/CountDepsAst.stdout index 05fb3712ae..a53b2d3f14 100644 --- a/testsuite/tests/count-deps/CountDepsAst.stdout +++ b/testsuite/tests/count-deps/CountDepsAst.stdout @@ -1,6 +1,7 @@ -Found 277 Language.Haskell.Syntax module dependencies +Found 279 Language.Haskell.Syntax module dependencies GHC.Builtin.Names GHC.Builtin.PrimOps +GHC.Builtin.PrimOps.Ids GHC.Builtin.Types GHC.Builtin.Types.Prim GHC.Builtin.Uniques @@ -77,6 +78,7 @@ GHC.Data.List.SetOps GHC.Data.Maybe GHC.Data.OrdList GHC.Data.Pair +GHC.Data.SmallArray GHC.Data.Stream GHC.Data.Strict GHC.Data.StringBuffer diff --git a/testsuite/tests/count-deps/CountDepsParser.stdout b/testsuite/tests/count-deps/CountDepsParser.stdout index 11b74ade5f..11fa8e2d08 100644 --- a/testsuite/tests/count-deps/CountDepsParser.stdout +++ b/testsuite/tests/count-deps/CountDepsParser.stdout @@ -1,6 +1,7 @@ -Found 283 GHC.Parser module dependencies +Found 285 GHC.Parser module dependencies GHC.Builtin.Names GHC.Builtin.PrimOps +GHC.Builtin.PrimOps.Ids GHC.Builtin.Types GHC.Builtin.Types.Prim GHC.Builtin.Uniques @@ -77,6 +78,7 @@ GHC.Data.List.SetOps GHC.Data.Maybe GHC.Data.OrdList GHC.Data.Pair +GHC.Data.SmallArray GHC.Data.Stream GHC.Data.Strict GHC.Data.StringBuffer |