[project @ 1999-03-22 16:56:09 by simonm]
authorsimonm <unknown>
Mon, 22 Mar 1999 16:56:09 +0000 (16:56 +0000)
committersimonm <unknown>
Mon, 22 Mar 1999 16:56:09 +0000 (16:56 +0000)
PAPs are ReEntrant, not SingleEntry.

ghc/compiler/simplStg/StgVarInfo.lhs

index e062f37..9e58a8f 100644 (file)
@@ -175,7 +175,7 @@ varsRhs scope_fv_info (binder, StgRhsClosure cc _ srt _ upd args body)
        rhs_fvs         = body_fvs  `minusFVBinders` args
        rhs_escs        = body_escs `minusVarSet`   set_of_args
        binder_info     = lookupFVInfo scope_fv_info binder
-       upd'  | null args && isPAP body2 = SingleEntry
+       upd'  | null args && isPAP body2 = ReEntrant
              | otherwise                = upd
     in
     returnLne (StgRhsClosure cc binder_info srt (getFVs rhs_fvs) upd'