projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2003-02-12 15:01:31 by simonpj]
[ghc-hetmet.git]
/
ghc
/
compiler
/
simplCore
/
OccurAnal.lhs
diff --git
a/ghc/compiler/simplCore/OccurAnal.lhs
b/ghc/compiler/simplCore/OccurAnal.lhs
index
02fe904
..
fe035f3
100644
(file)
--- a/
ghc/compiler/simplCore/OccurAnal.lhs
+++ b/
ghc/compiler/simplCore/OccurAnal.lhs
@@
-20,7
+20,7
@@
module OccurAnal (
import CoreSyn
import CoreFVs ( idRuleVars )
import CoreUtils ( exprIsTrivial )
import CoreSyn
import CoreFVs ( idRuleVars )
import CoreUtils ( exprIsTrivial )
-import Id ( isDataConId, isOneShotLambda, setOneShotLambda,
+import Id ( isDataConWorkId, isOneShotLambda, setOneShotLambda,
idOccInfo, setIdOccInfo,
isExportedId, modifyIdInfo, idInfo, idArity,
idSpecialisation, isLocalId,
idOccInfo, setIdOccInfo,
isExportedId, modifyIdInfo, idInfo, idArity,
idSpecialisation, isLocalId,
@@
-704,7
+704,7
@@
occAnalApp env (Var fun, args) is_rhs
-- This is the *whole point* of the isRhsEnv predicate
final_args_uds
| isRhsEnv env,
-- This is the *whole point* of the isRhsEnv predicate
final_args_uds
| isRhsEnv env,
- isDataConId fun || valArgCount args < idArity fun
+ isDataConWorkId fun || valArgCount args < idArity fun
= mapVarEnv markMany args_uds
| otherwise = args_uds
in
= mapVarEnv markMany args_uds
| otherwise = args_uds
in