summaryrefslogtreecommitdiff
path: root/compiler/cmm/ZipCfgExtras.hs
diff options
context:
space:
mode:
authorNorman Ramsey <nr@eecs.harvard.edu>2007-09-13 17:36:53 +0000
committerNorman Ramsey <nr@eecs.harvard.edu>2007-09-13 17:36:53 +0000
commitb9bcf6e71abe0d861c99618ee5a7ae9e2c45d26c (patch)
tree24a0de42540522e2217fde80484514cfb2cdfa04 /compiler/cmm/ZipCfgExtras.hs
parent2f48dee3e3e8d0eaafa094fe9ffba2b23aed09c1 (diff)
downloadhaskell-b9bcf6e71abe0d861c99618ee5a7ae9e2c45d26c.tar.gz
new signatures for splicing functions, new postorder_dfs
Diffstat (limited to 'compiler/cmm/ZipCfgExtras.hs')
-rw-r--r--compiler/cmm/ZipCfgExtras.hs9
1 files changed, 6 insertions, 3 deletions
diff --git a/compiler/cmm/ZipCfgExtras.hs b/compiler/cmm/ZipCfgExtras.hs
index e4bd1ae668..787a58abfe 100644
--- a/compiler/cmm/ZipCfgExtras.hs
+++ b/compiler/cmm/ZipCfgExtras.hs
@@ -16,8 +16,6 @@ import Maybes
import Panic
import ZipCfg
-import UniqFM
-
import Prelude hiding (zip, unzip, last)
@@ -31,12 +29,14 @@ unfocus :: FGraph m l -> LGraph m l -- lose focus
-- the current focus.
-- The new focus can be at either the entry edge or the exit edge.
+{-
splice_focus_entry :: FGraph m l -> LGraph m l -> FGraph m l
splice_focus_exit :: FGraph m l -> LGraph m l -> FGraph m l
+-}
_unused :: ()
_unused = all `seq` ()
- where all = ( exit, focusp, unfocus, splice_focus_entry, splice_focus_exit
+ where all = ( exit, focusp, unfocus {- , splice_focus_entry, splice_focus_exit -}
, fold_fwd_block, foldM_fwd_block (\_ a -> Just a)
)
@@ -49,6 +49,8 @@ exit g@(LGraph eid _) = FGraph eid (ZBlock h (ZLast l)) others
where FGraph _ b others = focusp is_exit g `orElse` panic "no exit in flow graph"
(h, l) = goto_end b
+
+{-
splice_focus_entry (FGraph eid (ZBlock head tail) blocks) g =
let (tail', g') = splice_tail g tail in
FGraph eid (ZBlock head tail') (plusUFM (lg_blocks g') blocks)
@@ -56,6 +58,7 @@ splice_focus_entry (FGraph eid (ZBlock head tail) blocks) g =
splice_focus_exit (FGraph eid (ZBlock head tail) blocks) g =
let (g', head') = splice_head head g in
FGraph eid (ZBlock head' tail) (plusUFM (lg_blocks g') blocks)
+-}
-- | Fold from first to last
fold_fwd_block ::