diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2018-06-07 09:17:22 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2018-06-25 15:36:20 +0100 |
commit | b4d545904ed7f883ad03b8746a610ae2f3640437 (patch) | |
tree | 6e081ba2ca4e098163ebdbe655c52235254a224e /compiler/simplCore | |
parent | 577399c0dfd544a613e69f0760046ec0769f33a2 (diff) | |
download | haskell-b4d545904ed7f883ad03b8746a610ae2f3640437.tar.gz |
More misc comments
... plus, reorder equations in toIfaceVar to improve
legibility. No change in behaviour.
Diffstat (limited to 'compiler/simplCore')
-rw-r--r-- | compiler/simplCore/OccurAnal.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/simplCore/OccurAnal.hs b/compiler/simplCore/OccurAnal.hs index a8cfbc0868..5c0c3b1d89 100644 --- a/compiler/simplCore/OccurAnal.hs +++ b/compiler/simplCore/OccurAnal.hs @@ -2295,6 +2295,9 @@ Core Lint never expects to find an *occurrence* of an Id marked as Dead, so we must zap the OccInfo on cb before making the binding x = cb. See Trac #5028. +NB: the OccInfo on /occurrences/ really doesn't matter much; the simplifier +doesn't use it. So this is only to satisfy the perhpas-over-picky Lint. + Historical note [no-case-of-case] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ We *used* to suppress the binder-swap in case expressions when |