[commit: ghc] master: Comments and white space (4111540)
git at git.haskell.org
git at git.haskell.org
Wed Oct 24 15:39:59 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/4111540127ae059774b2b7e69d7eddee01a17e81/ghc
>---------------------------------------------------------------
commit 4111540127ae059774b2b7e69d7eddee01a17e81
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Tue Oct 16 12:00:32 2018 +0100
Comments and white space
>---------------------------------------------------------------
4111540127ae059774b2b7e69d7eddee01a17e81
compiler/coreSyn/CoreUtils.hs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/compiler/coreSyn/CoreUtils.hs b/compiler/coreSyn/CoreUtils.hs
index 55609cf..c498258 100644
--- a/compiler/coreSyn/CoreUtils.hs
+++ b/compiler/coreSyn/CoreUtils.hs
@@ -1503,7 +1503,6 @@ expr_ok primop_ok (Lam b e)
| isTyVar b = expr_ok primop_ok e
| otherwise = True
-
-- Tick annotations that *tick* cannot be speculated, because these
-- are meant to identify whether or not (and how often) the particular
-- source expression was evaluated at runtime.
@@ -1613,7 +1612,7 @@ isDivOp _ = False
exprOkForSpeculation accepts very special case expressions.
Reason: (a ==# b) is ok-for-speculation, but the litEq rules
in PrelRules convert it (a ==# 3#) to
- case a of { DEAFULT -> 0#; 3# -> 1# }
+ case a of { DEFAULT -> 0#; 3# -> 1# }
for excellent reasons described in
PrelRules Note [The litEq rule: converting equality to case].
So, annoyingly, we want that case expression to be
@@ -1685,7 +1684,7 @@ In earlier GHCs, we got this:
0 -> 0 }
Before join-points etc we could only get rid of two cases (which are
-redundant) by recognising that th e(case <# ds 5 of { ... }) is
+redundant) by recognising that the (case <# ds 5 of { ... }) is
ok-for-speculation, even though it has /lifted/ type. But now join
points do the job nicely.
------- End of historical note ------------
More information about the ghc-commits
mailing list