X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FstgSyn%2FCoreToStg.lhs;fp=ghc%2Fcompiler%2FstgSyn%2FCoreToStg.lhs;h=1303fb26a009a0025458c18eb44694ff28d8dcc4;hb=6941708cc1d90f56fb99a9145502189d083371bb;hp=c23eb9dda2dcda24fa30694b9adad393996a6627;hpb=edec2d9277064b562da36dde476705e63a4b061d;p=ghc-hetmet.git diff --git a/ghc/compiler/stgSyn/CoreToStg.lhs b/ghc/compiler/stgSyn/CoreToStg.lhs index c23eb9d..1303fb2 100644 --- a/ghc/compiler/stgSyn/CoreToStg.lhs +++ b/ghc/compiler/stgSyn/CoreToStg.lhs @@ -12,7 +12,7 @@ module CoreToStg ( coreToStg, coreExprToStg ) where #include "HsVersions.h" import CoreSyn -import CoreUtils +import CoreUtils ( hasNoRedexes, manifestArity, exprType ) import StgSyn import Type @@ -240,8 +240,8 @@ coreToTopStgRhs scope_fv_info (bndr, rhs) where bndr_info = lookupFVInfo scope_fv_info bndr - upd | rhsIsNonUpd rhs = SingleEntry - | otherwise = Updatable + upd | hasNoRedexes rhs = SingleEntry + | otherwise = Updatable mkTopStgRhs :: UpdateFlag -> FreeVarsInfo -> SRT -> StgBinderInfo -> StgExpr -> StgRhs