[project @ 1997-07-05 02:46:26 by sof]
authorsof <unknown>
Sat, 5 Jul 1997 02:48:31 +0000 (02:48 +0000)
committersof <unknown>
Sat, 5 Jul 1997 02:48:31 +0000 (02:48 +0000)
ghc/compiler/specialise/Specialise.lhs
ghc/compiler/stgSyn/CoreToStg.lhs
ghc/compiler/stranal/SaLib.lhs
ghc/compiler/stranal/StrictAnal.lhs

index 433d8af..803e4a4 100644 (file)
@@ -30,7 +30,7 @@ import FiniteMap      ( addListToFM_C, FiniteMap )
 import Kind            ( mkBoxedTypeKind, isBoxedTypeKind )
 import Id              ( idType, isDefaultMethodId_maybe, toplevelishId,
                          isSuperDictSelId_maybe, isBottomingId,
-                         isConstMethodId_maybe, isDataCon,
+                          isDataCon,
                          isImportedId, mkIdWithNewUniq,
                          dataConTyCon, applyTypeEnvToId,
                          nullIdEnv, addOneToIdEnv, growIdEnvList,
index 4fda026..16ab5e5 100644 (file)
@@ -42,7 +42,9 @@ import Type           ( getAppDataTyConExpandingDicts, SYN_IE(Type) )
 import TysWiredIn      ( stringTy )
 import Unique          ( integerTyConKey, ratioTyConKey, Unique{-instance Eq-} )
 import UniqSupply      -- all of it, really
-import Util            ( zipLazy, panic, assertPanic{-, pprTrace ToDo:rm-} )
+import Util            ( zipLazy, panic, assertPanic, pprTrace {-TEMP-} )
+import Pretty
+import Outputable
 
 isLeakFreeType x y = False -- safe option; ToDo
 \end{code}
@@ -293,7 +295,6 @@ coreExprToStg env expr@(App _ _)
                            coreExprToStg env non_var_fun
 
       other -> -- A non-variable applied to things; better let-bind it.
---             pprTrace "coreExprToStg" (ppr PprDebug expr) $
                newStgVar (coreExprType fun)    `thenUs` \ fun_id ->
                coreExprToStg env fun           `thenUs` \ (stg_fun) ->
                let
index d31d892..485b597 100644 (file)
@@ -107,7 +107,7 @@ lookupAbsValEnv (AbsValEnv idenv) y
 \end{code}
 
 \begin{code}
-absValFromStrictness :: AnalysisKind -> StrictnessInfo bdee -> AbsVal
+absValFromStrictness :: AnalysisKind -> StrictnessInfo -> AbsVal
 
 absValFromStrictness anal NoStrictnessInfo            = AbsTop
 
index 751b671..d0ea862 100644 (file)
@@ -394,7 +394,7 @@ addStrictnessInfoToId str_val abs_val binder body
   = case (collectBinders body) of
        (_, _, [], rhs)            -> binder
        (_, _, lambda_bounds, rhs) -> binder `addIdStrictness` 
-                                     mkStrictnessInfo strictness Nothing
+                                     mkStrictnessInfo strictness False
                where
                    tys        = map idType lambda_bounds
                    strictness = findStrictness tys str_val abs_val