projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 1996-04-09 10:27:46 by partain]
[ghc-hetmet.git]
/
ghc
/
compiler
/
simplStg
/
StgStats.lhs
diff --git
a/ghc/compiler/simplStg/StgStats.lhs
b/ghc/compiler/simplStg/StgStats.lhs
index
a513b50
..
8fba50e
100644
(file)
--- a/
ghc/compiler/simplStg/StgStats.lhs
+++ b/
ghc/compiler/simplStg/StgStats.lhs
@@
-1,5
+1,5
@@
%
%
-% (c) The GRASP/AQUA Project, Glasgow University, 1992-1994
+% (c) The GRASP/AQUA Project, Glasgow University, 1992-1996
%
\section[StgStats]{Gathers statistical information about programs}
%
\section[StgStats]{Gathers statistical information about programs}
@@
-25,11
+25,11
@@
The program gather statistics about
module StgStats ( showStgStats ) where
module StgStats ( showStgStats ) where
-import StgSyn
+import Ubiq{-uitous-}
-import FiniteMap
+import StgSyn
-import Util
+import FiniteMap ( emptyFM, plusFM_C, unitFM, fmToList )
\end{code}
\begin{code}
\end{code}
\begin{code}
@@
-63,10
+63,10
@@
combineSEs :: [StatEnv] -> StatEnv
combineSEs = foldr combineSE emptySE
countOne :: CounterType -> StatEnv
combineSEs = foldr combineSE emptySE
countOne :: CounterType -> StatEnv
-countOne c = singletonFM c 1
+countOne c = unitFM c 1
countN :: CounterType -> Int -> StatEnv
countN :: CounterType -> Int -> StatEnv
-countN = singletonFM
+countN = unitFM
\end{code}
%************************************************************************
\end{code}
%************************************************************************