summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2018-01-12 17:31:06 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2018-04-27 08:26:33 +0100
commit693857f3a890dd061e19c70d4863b2258d97ff09 (patch)
treed73e81c72d147867ff5569a8e12c38b0c1210ebe /compiler
parent3d38e8284b7382844f9862e8d8afbae9c7248b09 (diff)
downloadhaskell-693857f3a890dd061e19c70d4863b2258d97ff09.tar.gz
Comments only
Diffstat (limited to 'compiler')
-rw-r--r--compiler/simplCore/SimplUtils.hs3
-rw-r--r--compiler/simplCore/Simplify.hs2
2 files changed, 3 insertions, 2 deletions
diff --git a/compiler/simplCore/SimplUtils.hs b/compiler/simplCore/SimplUtils.hs
index 7c0689d9be..fbf9b3ee89 100644
--- a/compiler/simplCore/SimplUtils.hs
+++ b/compiler/simplCore/SimplUtils.hs
@@ -1116,7 +1116,8 @@ preInlineUnconditionally env top_lvl bndr rhs rhs_env
| not active = Nothing
| isTopLevel top_lvl && isBottomingId bndr = Nothing -- Note [Top-level bottoming Ids]
| isCoVar bndr = Nothing -- Note [Do not inline CoVars unconditionally]
- | isExitJoinId bndr = Nothing -- Note [Do not inline exit join points] in Exitify
+ | isExitJoinId bndr = Nothing -- Note [Do not inline exit join points]
+ -- in module Exitify
| not (one_occ (idOccInfo bndr)) = Nothing
| not (isStableUnfolding unf) = Just (extend_subst_with rhs)
diff --git a/compiler/simplCore/Simplify.hs b/compiler/simplCore/Simplify.hs
index d92f6d7e44..249d19f5ca 100644
--- a/compiler/simplCore/Simplify.hs
+++ b/compiler/simplCore/Simplify.hs
@@ -3292,7 +3292,7 @@ simplLetUnfolding env top_lvl cont_mb id new_rhs rhs_ty unf
| isStableUnfolding unf
= simplStableUnfolding env top_lvl cont_mb id unf rhs_ty
| isExitJoinId id
- = return noUnfolding -- see Note [Do not inline exit join points]
+ = return noUnfolding -- See Note [Do not inline exit join points] in Exitify
| otherwise
= mkLetUnfolding (seDynFlags env) top_lvl InlineRhs id new_rhs