summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2017-05-04 18:33:57 +0200
committerGabor Greif <ggreif@gmail.com>2017-05-05 12:26:26 +0200
commit02748a52659949a06ef61d02894dadddd3c97412 (patch)
tree5c4bb3b49658a47e094bde1f05a62661b4b7069d /compiler
parentc8e4d4b387d6d057dea98d6a595e3712f24289dc (diff)
downloadhaskell-02748a52659949a06ef61d02894dadddd3c97412.tar.gz
Typos in comments [ci skip]
Diffstat (limited to 'compiler')
-rw-r--r--compiler/basicTypes/OccName.hs2
-rw-r--r--compiler/llvmGen/LlvmCodeGen/Ppr.hs4
-rw-r--r--compiler/simplCore/FloatIn.hs2
-rw-r--r--compiler/stranal/DmdAnal.hs16
4 files changed, 12 insertions, 12 deletions
diff --git a/compiler/basicTypes/OccName.hs b/compiler/basicTypes/OccName.hs
index f9c875e2f6..0fa2749ba1 100644
--- a/compiler/basicTypes/OccName.hs
+++ b/compiler/basicTypes/OccName.hs
@@ -854,7 +854,7 @@ would like to see is
To achieve this, the function avoidClashesOccEnv can be used to prepare the
TidyEnv, by “blocking” every name that occurs twice in the map. This way, none
-of the "a"s will get the priviledge of keeping this name, and all of them will
+of the "a"s will get the privilege of keeping this name, and all of them will
get a suitable number by tidyOccName.
This prepared TidyEnv can then be used with tidyOccName. See tidyTyCoVarBndrs
diff --git a/compiler/llvmGen/LlvmCodeGen/Ppr.hs b/compiler/llvmGen/LlvmCodeGen/Ppr.hs
index 8b6340d6f8..16c55188b4 100644
--- a/compiler/llvmGen/LlvmCodeGen/Ppr.hs
+++ b/compiler/llvmGen/LlvmCodeGen/Ppr.hs
@@ -175,10 +175,10 @@ pprLlvmCmmDecl (CmmProc mb_info entry_lbl live (ListGraph blks))
-- '------------'
--
-- Why this @<name> and @<name>$def? As the textual llvm ir
- -- generator is only handed typeless labes, it often does not
+ -- generator is only handed typeless labels, it often does not
-- know the type of the label (e.g. function to call), until
-- the actual call happens. However, llvm requires symbol
- -- lookups to be typed. Therfore we create the actual function
+ -- lookups to be typed. Therefore we create the actual function
-- as @<name>$def, and alias a bitcast to i8* as @<name>.
-- Any subsequent lookup can lookup @<name> as i8* and
-- bitcast it to the required type once we want to call it.
diff --git a/compiler/simplCore/FloatIn.hs b/compiler/simplCore/FloatIn.hs
index 34b0b42365..e765455dfc 100644
--- a/compiler/simplCore/FloatIn.hs
+++ b/compiler/simplCore/FloatIn.hs
@@ -409,7 +409,7 @@ But there are wrinkles
Solution: only float cases into the branches of other cases, and
not into the arguments of an application, or the RHS of a let. This
- is somewhat conservative, but it's simple. And it stil hits the
+ is somewhat conservative, but it's simple. And it still hits the
cases like Trac #5658. This is implemented in sepBindsByJoinPoint;
if is_case is False we dump all floating cases right here.
diff --git a/compiler/stranal/DmdAnal.hs b/compiler/stranal/DmdAnal.hs
index 78eefe39a1..49912413e4 100644
--- a/compiler/stranal/DmdAnal.hs
+++ b/compiler/stranal/DmdAnal.hs
@@ -312,7 +312,7 @@ dmdAnal' env dmd (Let (NonRec id rhs) body)
env1 = extendAnalEnv NotTopLevel env id1 (idStrictness id1)
(body_ty, body') = dmdAnal env1 dmd body
(body_ty1, id2) = annotateBndr env body_ty id1
- body_ty2 = addLazyFVs body_ty1 lazy_fv -- see Note [Lazy and unleasheable free variables]
+ body_ty2 = addLazyFVs body_ty1 lazy_fv -- see Note [Lazy and unleashable free variables]
-- If the actual demand is better than the vanilla call
-- demand, you might think that we might do better to re-analyse
@@ -332,7 +332,7 @@ dmdAnal' env dmd (Let (Rec pairs) body)
(env', lazy_fv, pairs') = dmdFix NotTopLevel env dmd pairs
(body_ty, body') = dmdAnal env' dmd body
body_ty1 = deleteFVs body_ty (map fst pairs)
- body_ty2 = addLazyFVs body_ty1 lazy_fv -- see Note [Lazy and unleasheable free variables]
+ body_ty2 = addLazyFVs body_ty1 lazy_fv -- see Note [Lazy and unleashable free variables]
in
body_ty2 `seq`
(body_ty2, Let (Rec pairs') body')
@@ -527,7 +527,7 @@ dmdFix top_lvl env let_dmd orig_pairs
abort :: (AnalEnv, DmdEnv, [(Id,CoreExpr)])
abort = (env, lazy_fv', zapped_pairs)
where (lazy_fv, pairs') = step True (zapIdStrictness orig_pairs)
- -- Note [Lazy and unleasheable free variables]
+ -- Note [Lazy and unleashable free variables]
non_lazy_fvs = plusVarEnvList $ map (strictSigDmdEnv . idStrictness . fst) pairs'
lazy_fv' = lazy_fv `plusVarEnv` mapVarEnv (const topDmd) non_lazy_fvs
zapped_pairs = zapIdStrictness pairs'
@@ -579,7 +579,7 @@ return the environment and code unchanged! We still need to do one additional
round, for two reasons:
* To get information on used free variables (both lazy and strict!)
- (see Note [Lazy and unleasheable free variables])
+ (see Note [Lazy and unleashable free variables])
* To ensure that all expressions have been traversed at least once, and any left-over
strictness annotations have been updated.
@@ -721,14 +721,14 @@ evalDmd, and think that it was lazy in p. But for join points we can
do better! We know that j's body will (if called at all) be evaluated
with the demand that consumes the entire join-binding, in this case
the argument demand from g. Whizzo! g evaluates both components of
-its arugment pair, so p will certainly be evaluated if j is called.
+its argument pair, so p will certainly be evaluated if j is called.
For f to be strict in p, we need /all/ paths to evaluate p; in this
case the C branch does so too, so we are fine. So, as usual, we need
to transport demands on free variables to the call site(s). Compare
-Note [Lazy and unleasheable free variables].
+Note [Lazy and unleashable free variables].
-The implementation is easy. Wwhen analysing a join point, we can
+The implementation is easy. When analysing a join point, we can
analyse its body with the demand from the entire join-binding (written
let_dmd here).
@@ -1032,7 +1032,7 @@ strictness. For example, if you have a function implemented by an
error stub, but which has RULES, you may want it not to be eliminated
in favour of error!
-Note [Lazy and unleasheable free variables]
+Note [Lazy and unleashable free variables]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
We put the strict and once-used FVs in the DmdType of the Id, so
that at its call sites we unleash demands on its strict fvs.