X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FGraphColor.hs;h=c60c12dae093b5773b24c2c3657f15871e515145;hb=272f0ba89eca1d9fc700cf4c27b9f8c3e23d6fe8;hp=d34399026b3659f9cc58c2182f039a37ed152b4d;hpb=92e1151179b419ce5d7a144993053ae982e0df5e;p=ghc-hetmet.git diff --git a/compiler/nativeGen/GraphColor.hs b/compiler/nativeGen/GraphColor.hs index d343990..c60c12d 100644 --- a/compiler/nativeGen/GraphColor.hs +++ b/compiler/nativeGen/GraphColor.hs @@ -3,13 +3,7 @@ -- This is a generic graph coloring library, abstracted over the type of -- the node keys, nodes and colors. -- - -{-# OPTIONS_GHC -w #-} --- The above warning supression flag is a temporary kludge. --- While working on this module you are encouraged to remove it and fix --- any warnings in the module. See --- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings --- for details +{-# OPTIONS -fno-warn-missing-signatures #-} module GraphColor ( module GraphBase, @@ -58,7 +52,7 @@ colorGraph colors triv spill graph0 = let -- do aggressive coalesing on the graph (graph_coalesced, rsCoalesce) - = coalesceGraph graph0 + = coalesceGraph triv graph0 -- run the scanner to slurp out all the trivially colorable nodes (ksTriv, ksProblems) @@ -121,7 +115,7 @@ assignColors assignColors colors graph ks = assignColors' colors graph [] ks - where assignColors' colors graph prob [] + where assignColors' _ graph prob [] = (graph, prob) assignColors' colors graph prob (k:ks) @@ -189,12 +183,12 @@ selectColor colors graph u -- we got one of our preferences, score! | not $ isEmptyUniqSet colors_ok_pref - , c : rest <- uniqSetToList colors_ok_pref + , c : _ <- uniqSetToList colors_ok_pref = Just c -- it wasn't a preference, but it was still ok | not $ isEmptyUniqSet colors_ok - , c : rest <- uniqSetToList colors_ok + , c : _ <- uniqSetToList colors_ok = Just c -- leave this node uncolored