From: simonpj Date: Thu, 9 Jul 1998 10:06:57 +0000 (+0000) Subject: [project @ 1998-07-09 10:06:57 by simonpj] X-Git-Tag: Approx_2487_patches~520 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=034bc89085624f91ae984e745429c6c99363c99c;p=ghc-hetmet.git [project @ 1998-07-09 10:06:57 by simonpj] Put IMustBeINLINEd on constructors --- diff --git a/ghc/compiler/basicTypes/MkId.lhs b/ghc/compiler/basicTypes/MkId.lhs index f9f7710..3f3deb0 100644 --- a/ghc/compiler/basicTypes/MkId.lhs +++ b/ghc/compiler/basicTypes/MkId.lhs @@ -177,8 +177,10 @@ Notice that dataConInfo :: Id -> IdInfo dataConInfo con_id - = setInlinePragInfo IWantToBeINLINEd $ - -- Always inline constructors if possible + = setInlinePragInfo IMustBeINLINEd $ + -- Always inline constructors; we don't create a binding for them + -- (well, at least not for dict constructors, since they are + -- always applied) setArityInfo (exactArity (length locals)) $ setUnfoldingInfo unfolding $ noIdInfo