A few bug fixes; some improvements spurred by paper writing
[ghc-hetmet.git] / compiler / cmm / OptimizationFuel.hs
index a5d8fa3..5e400c4 100644 (file)
@@ -128,8 +128,7 @@ fuelDecrementState new_optimizer old new s =
         optimizer = if diffFuel old new > 0 then new_optimizer else fs_lastpass s
 
 -- lGraphOfGraph is here because we need uniques to implement it.
-lGraphOfGraph :: Graph m l -> Int -> FuelMonad (LGraph m l)
-lGraphOfGraph (Graph tail blocks) args =
+lGraphOfGraph :: Graph m l -> FuelMonad (LGraph m l)
+lGraphOfGraph (Graph tail blocks) =
   do entry <- liftM BlockId $ getUniqueM
-     return $ LGraph entry args
-                     (insertBlock (Block entry emptyStackInfo tail) blocks)
+     return $ LGraph entry (insertBlock (Block entry tail) blocks)