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:
00bab5e
)
[project @ 1998-12-23 12:26:00 by simonm]
author
simonm
<unknown>
Wed, 23 Dec 1998 12:26:00 +0000
(12:26 +0000)
committer
simonm
<unknown>
Wed, 23 Dec 1998 12:26:00 +0000
(12:26 +0000)
Add strictness for fork# and par#.
ghc/compiler/prelude/PrimOp.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/prelude/PrimOp.lhs
b/ghc/compiler/prelude/PrimOp.lhs
index
9d7075a
..
3b35044
100644
(file)
--- a/
ghc/compiler/prelude/PrimOp.lhs
+++ b/
ghc/compiler/prelude/PrimOp.lhs
@@
-856,6
+856,9
@@
primOpStrictness :: PrimOp -> ([Demand], Bool)
-- Use only the ones you ned.
primOpStrictness SeqOp = ([wwLazy], False)
+primOpStrictness ParOp = ([wwLazy], False)
+primOpStrictness ForkOp = ([wwLazy, wwPrim], False)
+
primOpStrictness NewArrayOp = ([wwPrim, wwLazy, wwPrim], False)
primOpStrictness WriteArrayOp = ([wwPrim, wwPrim, wwLazy, wwPrim], False)