X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FcoreSyn%2FCoreUnfold.lhs;h=169c4ec676b13dfbf6b4596733b746fc091a47c2;hp=e50f304f30cd7d9adcd9ee8a81ce828d0f006b99;hb=f2dcf256399e9a2de6343c625630b51f8abf4863;hpb=8382f3ad690ab5c26bc3866f9b024bc7a2bc6308 diff --git a/compiler/coreSyn/CoreUnfold.lhs b/compiler/coreSyn/CoreUnfold.lhs index e50f304..169c4ec 100644 --- a/compiler/coreSyn/CoreUnfold.lhs +++ b/compiler/coreSyn/CoreUnfold.lhs @@ -500,7 +500,6 @@ StrictAnal.addStrictnessInfoToTopId \begin{code} callSiteInline :: DynFlags -> Bool -- True <=> the Id can be inlined - -> Bool -- 'inline' note at call site -> OccInfo -> Id -- The Id -> [Bool] -- One for each value arg; True if it is interesting @@ -508,7 +507,7 @@ callSiteInline :: DynFlags -> Maybe CoreExpr -- Unfolding, if any -callSiteInline dflags active_inline inline_call occ id arg_infos interesting_cont +callSiteInline dflags active_inline occ id arg_infos interesting_cont = case idUnfolding id of { NoUnfolding -> Nothing ; OtherCon cs -> Nothing ; @@ -547,9 +546,6 @@ callSiteInline dflags active_inline inline_call occ id arg_infos interesting_con -- consider_safe decides whether it's a good idea to -- inline something, given that there's no -- work-duplication issue (the caller checks that). - | inline_call = True - - | otherwise = case guidance of UnfoldNever -> False UnfoldIfGoodArgs n_vals_wanted arg_discounts size res_discount