summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonmar <unknown>2000-09-06 10:21:17 +0000
committersimonmar <unknown>2000-09-06 10:21:17 +0000
commit3cc69ccd1a3eaaf59f0031673573baf93332c514 (patch)
tree99779b9e32b430171300f0eda9d4ab1d47cd0e39
parent040b7deab8dceb8cc98a596c38fdb207c10636f1 (diff)
downloadhaskell-3cc69ccd1a3eaaf59f0031673573baf93332c514.tar.gz
[project @ 2000-09-06 10:21:17 by simonmar]
recode primOpOkForSpeculation in terms of primOpIsCheap and primOpCanFail.
-rw-r--r--ghc/compiler/prelude/PrimOp.lhs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc/compiler/prelude/PrimOp.lhs b/ghc/compiler/prelude/PrimOp.lhs
index e6ced5ade7..9e946d8445 100644
--- a/ghc/compiler/prelude/PrimOp.lhs
+++ b/ghc/compiler/prelude/PrimOp.lhs
@@ -365,7 +365,7 @@ See also @primOpIsCheap@ (below).
primOpOkForSpeculation :: PrimOp -> Bool
-- See comments with CoreUtils.exprOkForSpeculation
primOpOkForSpeculation op
- = not (primOpCanFail op || primOpHasSideEffects op || primOpOutOfLine op)
+ = primOpIsCheap op && not (primOpCanFail op)
\end{code}