diff options
author | benl@ouroborus.net <unknown> | 2010-06-24 08:31:21 +0000 |
---|---|---|
committer | benl@ouroborus.net <unknown> | 2010-06-24 08:31:21 +0000 |
commit | e1744771112465b5d43df1d7e38c8a7415b4705f (patch) | |
tree | b60491b610116ac404a32fb845271d1116ce71ec /compiler/nativeGen/RegAlloc/Graph/Stats.hs | |
parent | a4e89052ca5163bc1a33b5096b50e5a3fbb9fbd5 (diff) | |
download | haskell-e1744771112465b5d43df1d7e38c8a7415b4705f.tar.gz |
NCG: Comments and formatting only
Diffstat (limited to 'compiler/nativeGen/RegAlloc/Graph/Stats.hs')
-rw-r--r-- | compiler/nativeGen/RegAlloc/Graph/Stats.hs | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/compiler/nativeGen/RegAlloc/Graph/Stats.hs b/compiler/nativeGen/RegAlloc/Graph/Stats.hs index 9fed1ebaf1..51554d6953 100644 --- a/compiler/nativeGen/RegAlloc/Graph/Stats.hs +++ b/compiler/nativeGen/RegAlloc/Graph/Stats.hs @@ -1,8 +1,6 @@ {-# OPTIONS -fno-warn-missing-signatures #-} --- Carries interesting info for debugging / profiling of the +-- | Carries interesting info for debugging / profiling of the -- graph coloring register allocator. --- - module RegAlloc.Graph.Stats ( RegAllocStats (..), @@ -89,20 +87,12 @@ instance Outputable instr => Outputable (RegAllocStats instr) where $$ (ppr (raCode s)) $$ text "" --- $$ text "# Register conflict graph." --- $$ Color.dotGraph regDotColor trivColorable (raGraph s) --- $$ text "" - $$ (if (not $ isNullUFM $ raCoalesced s) then text "# Registers coalesced." $$ (vcat $ map ppr $ ufmToList $ raCoalesced s) $$ text "" else empty) --- $$ text "# Spill costs. reg uses defs lifetime degree cost" --- $$ vcat (map (pprSpillCostRecord (raGraph s)) $ eltsUFM $ raSpillCosts s) --- $$ text "" - $$ text "# Spills inserted." $$ ppr (raSpillStats s) $$ text "" @@ -114,10 +104,6 @@ instance Outputable instr => Outputable (RegAllocStats instr) where ppr (s@RegAllocStatsColored { raSRMs = (spills, reloads, moves) }) = text "# Colored" --- $$ text "# Register conflict graph (initial)." --- $$ Color.dotGraph regDotColor trivColorable (raGraph s) --- $$ text "" - $$ text "# Code with liveness information." $$ (ppr (raCode s)) $$ text "" @@ -267,7 +253,6 @@ pprStatsLifeConflict stats graph -- | Count spill/reload/reg-reg moves. -- Lets us see how well the register allocator has done. --- countSRMs :: Instruction instr => LiveCmmTop instr -> (Int, Int, Int) @@ -300,18 +285,3 @@ countSRM_instr li addSRM (s1, r1, m1) (s2, r2, m2) = (s1+s2, r1+r2, m1+m2) - - - - - -{- -toX11Color (r, g, b) - = let rs = padL 2 '0' (showHex r "") - gs = padL 2 '0' (showHex r "") - bs = padL 2 '0' (showHex r "") - - padL n c s - = replicate (n - length s) c ++ s - in "#" ++ rs ++ gs ++ bs --} |