[commit: ghc] wip/T13861: more to fix (2244911)
git at git.haskell.org
git at git.haskell.org
Fri Dec 22 00:02:31 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T13861
Link : http://ghc.haskell.org/trac/ghc/changeset/2244911e624610068318ca5021256895ae65f1f8/ghc
>---------------------------------------------------------------
commit 2244911e624610068318ca5021256895ae65f1f8
Author: Gabor Greif <ggreif at gmail.com>
Date: Sat Jul 29 23:05:24 2017 +0200
more to fix
>---------------------------------------------------------------
2244911e624610068318ca5021256895ae65f1f8
compiler/simplStg/StgCse.hs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler/simplStg/StgCse.hs b/compiler/simplStg/StgCse.hs
index f39ef51..4bfdc42 100644
--- a/compiler/simplStg/StgCse.hs
+++ b/compiler/simplStg/StgCse.hs
@@ -115,8 +115,8 @@ newtype ConAppMap a = CAM { un_cam :: DNameEnv (ListMap StgArgMap a) }
newtype LaxDataCon = Lax DataCon
instance NamedThing LaxDataCon where
- getName (Lax dc) | isVanillaDataCon dc && not hasStrict && not unpacked = mkFCallName uniq "%%%HALLO" -- FIXME
- where uniq = mkUniqueGrimily . negate $ dataConTag dc * 10000 + length (dataConOrigArgTys dc)
+ getName (Lax dc) | isVanillaDataCon dc && not hasStrict && not unpacked = mkFCallName uniq "" -- FIXME: is there a better way?
+ where uniq = mkUniqueGrimily . negate $ dataConTag dc * 1048576 + length (dataConOrigArgTys dc) -- FIXME
hasStrict = any (\case HsLazy -> False; _ -> True) (dataConImplBangs dc)
unpacked = isUnboxedTupleCon dc || isUnboxedSumCon dc
getName (Lax dc) = getName dc
More information about the ghc-commits
mailing list