projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8fe5201
)
make remove_entry_label actually work inside ZipDataflow
author
Norman Ramsey
<nr@eecs.harvard.edu>
Fri, 14 Sep 2007 14:54:35 +0000
(14:54 +0000)
committer
Norman Ramsey
<nr@eecs.harvard.edu>
Fri, 14 Sep 2007 14:54:35 +0000
(14:54 +0000)
compiler/cmm/ZipDataflow.hs
patch
|
blob
|
history
diff --git
a/compiler/cmm/ZipDataflow.hs
b/compiler/cmm/ZipDataflow.hs
index
c09a57e
..
cf18b13
100644
(file)
--- a/
compiler/cmm/ZipDataflow.hs
+++ b/
compiler/cmm/ZipDataflow.hs
@@
-28,6
+28,8
@@
import UniqSupply
import Control.Monad
import Maybe
import Control.Monad
import Maybe
+#include "HsVersions.h"
+
{-
\section{A very polymorphic infrastructure for dataflow problems}
{-
\section{A very polymorphic infrastructure for dataflow problems}
@@
-421,7
+423,7
@@
labelGraph id (Graph tail blocks) = LGraph id (insertBlock (Block id tail) block
remove_entry_label :: LGraph m l -> Graph m l
remove_entry_label g =
remove_entry_label :: LGraph m l -> Graph m l
remove_entry_label g =
- let FGraph e (ZBlock (ZFirst id tail)) others = entry g
+ let FGraph e (ZBlock (ZFirst id) tail) others = entry g
in ASSERT (id == e) Graph tail others
{-
in ASSERT (id == e) Graph tail others
{-
@@
-857,3
+859,7
@@
subAnalysis' m =
return a }
where pprFacts env = nest 2 $ vcat $ map pprFact $ ufmToList env
pprFact (id, a) = hang (ppr id <> colon) 4 (ppr a)
return a }
where pprFacts env = nest 2 $ vcat $ map pprFact $ ufmToList env
pprFact (id, a) = hang (ppr id <> colon) 4 (ppr a)
+
+
+_unused :: FS.FastString
+_unused = undefined