diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-10-07 14:06:14 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-10-09 08:53:21 -0400 |
commit | ef950b19c04bc9c41920ecc9f94382653981d4bb (patch) | |
tree | 376288f99f961cb28736a9b966155a257269de2e /compiler/GHC/Core/Opt/WorkWrap/Utils.hs | |
parent | e5c7c9c8578de1248826c21ebd08e475d094a552 (diff) | |
download | haskell-ef950b19c04bc9c41920ecc9f94382653981d4bb.tar.gz |
Add TyCon Set/Env and use them in a few places.
Firstly this improves code clarity.
But it also has performance benefits as we no longer
go through the name of the TyCon to get at it's unique.
In order to make this work the recursion check for TyCon
has been moved into it's own module in order to avoid import
cycles.
Diffstat (limited to 'compiler/GHC/Core/Opt/WorkWrap/Utils.hs')
-rw-r--r-- | compiler/GHC/Core/Opt/WorkWrap/Utils.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/GHC/Core/Opt/WorkWrap/Utils.hs b/compiler/GHC/Core/Opt/WorkWrap/Utils.hs index 8cc0eaa503..231faa0d44 100644 --- a/compiler/GHC/Core/Opt/WorkWrap/Utils.hs +++ b/compiler/GHC/Core/Opt/WorkWrap/Utils.hs @@ -40,6 +40,7 @@ import GHC.Core.Coercion import GHC.Core.FamInstEnv import GHC.Types.Basic ( Boxity(..) ) import GHC.Core.TyCon +import GHC.Core.TyCon.RecWalk import GHC.Types.Unique.Supply import GHC.Types.Unique import GHC.Data.Maybe |