projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
700d800
)
[project @ 1998-12-22 18:52:04 by simonm]
author
simonm
<unknown>
Tue, 22 Dec 1998 18:52:04 +0000
(18:52 +0000)
committer
simonm
<unknown>
Tue, 22 Dec 1998 18:52:04 +0000
(18:52 +0000)
Filter out type arguments when analysing primops.
ghc/compiler/stranal/SaAbsInt.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/stranal/SaAbsInt.lhs
b/ghc/compiler/stranal/SaAbsInt.lhs
index
d2a8b3d
..
dc1efe4
100644
(file)
--- a/
ghc/compiler/stranal/SaAbsInt.lhs
+++ b/
ghc/compiler/stranal/SaAbsInt.lhs
@@
-422,7
+422,7
@@
absEval anal (Con (Literal _) args) env
absEval anal (Con (PrimOp op) args) env
= -- Not all PrimOps evaluate all their arguments
if or (zipWith (check_arg anal)
- [absEval anal arg env | arg <- args]
+ [absEval anal arg env | arg <- args, isValArg arg]
arg_demands)
then AbsBot
else case anal of