[commit: ghc] wip/T13861: WIP: an experiment (69221a6)
git at git.haskell.org
git at git.haskell.org
Wed Jan 3 08:15:55 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T13861
Link : http://ghc.haskell.org/trac/ghc/changeset/69221a67b0a792d38152a6606c300132494f0004/ghc
>---------------------------------------------------------------
commit 69221a67b0a792d38152a6606c300132494f0004
Author: Gabor Greif <ggreif at gmail.com>
Date: Wed Jan 3 09:15:43 2018 +0100
WIP: an experiment
>---------------------------------------------------------------
69221a67b0a792d38152a6606c300132494f0004
compiler/coreSyn/MkCore.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/coreSyn/MkCore.hs b/compiler/coreSyn/MkCore.hs
index 72b6abf..588ce5d 100644
--- a/compiler/coreSyn/MkCore.hs
+++ b/compiler/coreSyn/MkCore.hs
@@ -200,7 +200,7 @@ mkWildCase :: CoreExpr -> Type -> Type -> [CoreAlt] -> CoreExpr
-- Make a case expression whose case binder is unused
-- The alts should not have any occurrences of WildId
mkWildCase scrut scrut_ty res_ty alts
- = Case scrut (mkWildValBinder scrut_ty) res_ty alts
+ = Case scrut (mkWildValBinder scrut_ty `setIdUnfolding` evaldUnfolding) res_ty alts
mkIfThenElse :: CoreExpr -> CoreExpr -> CoreExpr -> CoreExpr
mkIfThenElse guard then_expr else_expr
More information about the ghc-commits
mailing list