Skip to content
Snippets Groups Projects
Commit 3cc69ccd authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 2000-09-06 10:21:17 by simonmar]

recode primOpOkForSpeculation in terms of primOpIsCheap and primOpCanFail.
parent 040b7dea
No related merge requests found
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment