X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FsimplStg%2FStgStats.lhs;h=824c112a1ceedc30ca55edef7e9b70832547c0cc;hb=32c62212b35b2b631f3753d432b508de5c79c783;hp=fd5946a3fe7761bbb7be8eb306717fbe8c87080f;hpb=111cee3f1ad93816cb828e38b38521d85c3bcebb;p=ghc-hetmet.git diff --git a/ghc/compiler/simplStg/StgStats.lhs b/ghc/compiler/simplStg/StgStats.lhs index fd5946a..824c112 100644 --- a/ghc/compiler/simplStg/StgStats.lhs +++ b/ghc/compiler/simplStg/StgStats.lhs @@ -117,10 +117,10 @@ statBinding :: Bool -- True <=> top-level; False <=> nested -> StgBinding -> StatEnv -statBinding top (StgNonRec b rhs) +statBinding top (StgNonRec _srt b rhs) = statRhs top (b, rhs) -statBinding top (StgRec pairs) +statBinding top (StgRec _srt pairs) = combineSEs (map (statRhs top) pairs) statRhs :: Bool -> (Id, StgRhs) -> StatEnv @@ -128,7 +128,7 @@ statRhs :: Bool -> (Id, StgRhs) -> StatEnv statRhs top (b, StgRhsCon cc con args) = countOne (ConstructorBinds top) -statRhs top (b, StgRhsClosure cc bi srt fv u args body) +statRhs top (b, StgRhsClosure cc bi fv u args body) = statExpr body `combineSE` countN FreeVariables (length fv) `combineSE` countOne ( @@ -148,11 +148,11 @@ statRhs top (b, StgRhsClosure cc bi srt fv u args body) \begin{code} statExpr :: StgExpr -> StatEnv -statExpr (StgApp _ _) = countOne Applications -statExpr (StgLit _) = countOne Literals -statExpr (StgConApp _ _) = countOne ConstructorApps -statExpr (StgPrimApp _ _ _) = countOne PrimitiveApps -statExpr (StgSCC l e) = statExpr e +statExpr (StgApp _ _) = countOne Applications +statExpr (StgLit _) = countOne Literals +statExpr (StgConApp _ _) = countOne ConstructorApps +statExpr (StgOpApp _ _ _) = countOne PrimitiveApps +statExpr (StgSCC l e) = statExpr e statExpr (StgLetNoEscape lvs_whole lvs_rhss binds body) = statBinding False{-not top-level-} binds `combineSE`