summaryrefslogtreecommitdiff
path: root/compiler/cmm
diff options
context:
space:
mode:
authornineonine <mail4chemik@gmail.com>2019-11-17 13:33:22 -0800
committernineonine <mail4chemik@gmail.com>2019-11-17 13:33:22 -0800
commit34515e7c94250a8b5b85453a0481d0c8d313a7c5 (patch)
tree4e02ec78b241d7085367d6ed41bb04ea58048756 /compiler/cmm
parent2f5ed225b78b32c65d023072d78ae5d176e2f04b (diff)
downloadhaskell-34515e7c94250a8b5b85453a0481d0c8d313a7c5.tar.gz
Fix random typos [skip ci]
Diffstat (limited to 'compiler/cmm')
-rw-r--r--compiler/cmm/CmmImplementSwitchPlans.hs2
-rw-r--r--compiler/cmm/cmm-notes2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/cmm/CmmImplementSwitchPlans.hs b/compiler/cmm/CmmImplementSwitchPlans.hs
index 84ff007bef..83c29cf6b5 100644
--- a/compiler/cmm/CmmImplementSwitchPlans.hs
+++ b/compiler/cmm/CmmImplementSwitchPlans.hs
@@ -67,7 +67,7 @@ visitSwitches dflags block
-- This is important as the expression could contain expensive code like
-- memory loads or divisions which we REALLY don't want to duplicate.
--- This happend in parts of the handwritten RTS Cmm code. See also #16933
+-- This happened in parts of the handwritten RTS Cmm code. See also #16933
-- See Note [Floating switch expressions]
floatSwitchExpr :: DynFlags -> CmmExpr -> UniqSM (Block CmmNode O O, CmmExpr)
diff --git a/compiler/cmm/cmm-notes b/compiler/cmm/cmm-notes
index 600a62a617..82d9673162 100644
--- a/compiler/cmm/cmm-notes
+++ b/compiler/cmm/cmm-notes
@@ -138,7 +138,7 @@ a dominator analysis, using the Dataflow Engine.
* The CLabel for the entry-point/closure reveals whether g is
a CAF (or refers to CAFs). See the IdLabel constructor of CLabel.
-* The CAF-ness of the original top-level defininions is figured out
+* The CAF-ness of the original top-level definitions is figured out
(by TidyPgm) before we generate C--. This CafInfo is only set for
top-level Ids; nested bindings stay with MayHaveCafRefs.