diff options
| author | Gabor Greif <ggreif@gmail.com> | 2017-03-24 11:21:52 +0100 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2017-03-24 11:46:35 +0100 |
| commit | 1dd60ac9a949157da89d4e6e1f8203e746be58f3 (patch) | |
| tree | 5b7ca1ae64fbb7b244657fc84b7fabd1efe80fc8 /compiler/simplCore | |
| parent | fc41fdc6423b91eef52c1f4c73a9be5e9dea17b9 (diff) | |
| download | haskell-1dd60ac9a949157da89d4e6e1f8203e746be58f3.tar.gz | |
Typos in comments (notes too) [ci skip]
Diffstat (limited to 'compiler/simplCore')
| -rw-r--r-- | compiler/simplCore/CallArity.hs | 11 | ||||
| -rw-r--r-- | compiler/simplCore/Simplify.hs | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/compiler/simplCore/CallArity.hs b/compiler/simplCore/CallArity.hs index c051dae456..1eb4fa22fd 100644 --- a/compiler/simplCore/CallArity.hs +++ b/compiler/simplCore/CallArity.hs @@ -16,7 +16,6 @@ import CoreSyn import Id import CoreArity ( typeArity ) import CoreUtils ( exprIsCheap, exprIsTrivial ) ---import Outputable import UnVarGraph import Demand @@ -26,7 +25,7 @@ import Control.Arrow ( first, second ) {- %************************************************************************ %* * - Call Arity Analyis + Call Arity Analysis %* * %************************************************************************ @@ -76,7 +75,7 @@ correct. What we want to know from an expression --------------------------------------- -In order to obtain that information for variables, we analyize expression and +In order to obtain that information for variables, we analyze expression and obtain bits of information: I. The arity analysis: @@ -95,7 +94,7 @@ For efficiency reasons, we gather this information only for a set of The two analysis are not completely independent, as a higher arity can improve the information about what variables are being called once or multiple times. -Note [Analysis I: The arity analyis] +Note [Analysis I: The arity analysis] ------------------------------------ The arity analysis is quite straight forward: The information about an @@ -104,7 +103,7 @@ expression is an where absent variables are bound to Nothing and otherwise to a lower bound to their arity. -When we analyize an expression, we analyize it with a given context arity. +When we analyze an expression, we analyze it with a given context arity. Lambdas decrease and applications increase the incoming arity. Analysizing a variable will put that arity in the environment. In lets or cases all the results from the various subexpressions are lubed, which takes the point-wise @@ -687,7 +686,7 @@ trimArity v a = minimum [a, max_arity_by_type, max_arity_by_strsig] --------------------------------------- -- Result type for the two analyses. --- See Note [Analysis I: The arity analyis] +-- See Note [Analysis I: The arity analysis] -- and Note [Analysis II: The Co-Called analysis] type CallArityRes = (UnVarGraph, VarEnv Arity) diff --git a/compiler/simplCore/Simplify.hs b/compiler/simplCore/Simplify.hs index 4b158b607a..fae040f47a 100644 --- a/compiler/simplCore/Simplify.hs +++ b/compiler/simplCore/Simplify.hs @@ -2238,7 +2238,7 @@ inlined. Historical note: we use to do the "case binder swap" in the Simplifier so there were additional complications if the scrutinee was a variable. -Now the binder-swap stuff is done in the occurrence analyer; see +Now the binder-swap stuff is done in the occurrence analyser; see OccurAnal Note [Binder swap]. Note [knownCon occ info] |
