[commit: ghc] wip/T13861: disable the nullary constr subst for now (06cf168)

git at git.haskell.org git at git.haskell.org
Fri Dec 22 00:02:48 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T13861
Link       : http://ghc.haskell.org/trac/ghc/changeset/06cf168ce84ae59ed11f4169c489f16c37dab2c5/ghc

>---------------------------------------------------------------

commit 06cf168ce84ae59ed11f4169c489f16c37dab2c5
Author: Gabor Greif <ggreif at gmail.com>
Date:   Mon Jul 31 09:13:10 2017 +0200

    disable the nullary constr subst for now


>---------------------------------------------------------------

06cf168ce84ae59ed11f4169c489f16c37dab2c5
 compiler/simplStg/StgCse.hs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/compiler/simplStg/StgCse.hs b/compiler/simplStg/StgCse.hs
index d758f48..1b98265 100644
--- a/compiler/simplStg/StgCse.hs
+++ b/compiler/simplStg/StgCse.hs
@@ -203,9 +203,9 @@ envLookup dataCon args env = lookupTM (dataCon, args') (ce_conAppMap env)
 
 addDataCon :: OutId -> LaxDataCon -> [OutStgArg] -> CseEnv -> CseEnv
 -- do not bother with nullary data constructors, they are static anyways
-addDataCon bndr dataCon [] env = env { ce_conAppMap = new_env }
-  where new_env = alterTM (dataCon, []) (\case Nothing -> pure bndr; p -> p) (ce_conAppMap env)
---addDataCon _ _ [] env = env
+--addDataCon bndr dataCon [] env = env { ce_conAppMap = new_env }
+--  where new_env = alterTM (dataCon, []) (\case Nothing -> pure bndr; p -> p) (ce_conAppMap env)
+addDataCon _ _ [] env = env
 addDataCon bndr dataCon args env = env { ce_conAppMap = new_env }
   where
     new_env = insertTM (dataCon, args) bndr (ce_conAppMap env)



More information about the ghc-commits mailing list