[project @ 1998-03-20 13:59:05 by sof]
authorsof <unknown>
Fri, 20 Mar 1998 13:59:05 +0000 (13:59 +0000)
committersof <unknown>
Fri, 20 Mar 1998 13:59:05 +0000 (13:59 +0000)
isInlinableOcc: add case for DeadCode

ghc/compiler/simplCore/BinderInfo.lhs

index 782f514..6723bc6 100644 (file)
@@ -135,6 +135,7 @@ isInlinableOcc whnf small (ManyOcc _)
 isInlinableOcc whnf small (OneOcc _ dup_danger _ n_alts _)
   =  (whnf || (case dup_danger of {NoDupDanger -> True; other -> False}))
   && (small || n_alts <= 1)
+isInlinableOcc _ _ DeadCode = False
 
 isDeadOcc :: BinderInfo -> Bool
 isDeadOcc DeadCode = True