X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fcmm%2FPprCmmZ.hs;fp=compiler%2Fcmm%2FPprCmmZ.hs;h=c6eb4ae8fa868bee1aa9bbff5bb3abe51beb4960;hb=e8b6200f76059a091e6ae7a03821143819561727;hp=d333b05770fc337dd6b9b3d7e406af578e5711c8;hpb=75879a1e1a0a22d3a7218efd71017af724262704;p=ghc-hetmet.git diff --git a/compiler/cmm/PprCmmZ.hs b/compiler/cmm/PprCmmZ.hs index d333b05..c6eb4ae 100644 --- a/compiler/cmm/PprCmmZ.hs +++ b/compiler/cmm/PprCmmZ.hs @@ -1,6 +1,6 @@ module PprCmmZ - ( pprCmmGraph + ( pprCmmGraphLikeCmm ) where @@ -12,21 +12,14 @@ import PprCmm() import Outputable import qualified ZipCfgCmm as G import qualified ZipCfg as Z -import qualified ZipDataflow as DF import CmmZipUtil import UniqSet import FastString ---------------------------------------------------------------- -instance DF.DebugNodes G.Middle G.Last - - -instance Outputable G.CmmGraph where - ppr = pprCmmGraph - -pprCmmGraph :: G.CmmGraph -> SDoc -pprCmmGraph g = vcat (swallow blocks) +pprCmmGraphLikeCmm :: G.CmmGraph -> SDoc +pprCmmGraphLikeCmm g = vcat (swallow blocks) where blocks = Z.postorder_dfs g swallow :: [G.CmmBlock] -> [SDoc] swallow [] = [] @@ -109,3 +102,4 @@ pprCmmGraph g = vcat (swallow blocks) in Z.fold_blocks add Z.emptyBlockSet g unique_pred id = Z.elemBlockSet id single_preds +