[project @ 2005-08-09 16:57:57 by simonpj]
authorsimonpj <unknown>
Tue, 9 Aug 2005 16:57:58 +0000 (16:57 +0000)
committersimonpj <unknown>
Tue, 9 Aug 2005 16:57:58 +0000 (16:57 +0000)
Comments

ghc/compiler/coreSyn/CoreUnfold.lhs
ghc/compiler/simplCore/Simplify.lhs

index d840f45..a0050d5 100644 (file)
@@ -552,6 +552,7 @@ callSiteInline dflags active_inline inline_call occ id arg_infos interesting_con
                  where
                    some_benefit = or arg_infos || really_interesting_cont || 
                                   (not is_top && (once || (n_vals_wanted > 0 && enough_args)))
+                               -- [was (once && not in_lam)]
                -- If it occurs more than once, there must be
                -- something interesting about some argument, or the
                -- result context, to make it worth inlining
index 3ce54cf..a537e59 100644 (file)
@@ -24,7 +24,7 @@ import SimplUtils     ( mkCase, mkLam, prepareAlts,
 import Id              ( Id, idType, idInfo, idArity, isDataConWorkId, 
                          setIdUnfolding, isDeadBinder,
                          idNewDemandInfo, setIdInfo, 
-                         setIdOccInfo, zapLamIdInfo, setOneShotLambda, 
+                         setIdOccInfo, zapLamIdInfo, setOneShotLambda
                        )
 import MkId            ( eRROR_ID )
 import Literal         ( mkStringLit )