[commit: ghc] wip/T10527-2: Add an ambient Id substitution to Subst (9e4908b)

git at git.haskell.org git at git.haskell.org
Wed Jul 8 16:41:54 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T10527-2
Link       : http://ghc.haskell.org/trac/ghc/changeset/9e4908b64648416b9ffb95eca88db7c2a596fe46/ghc

>---------------------------------------------------------------

commit 9e4908b64648416b9ffb95eca88db7c2a596fe46
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Jul 8 17:39:21 2015 +0100

    Add an ambient Id substitution to Subst
    
    After a struggle, I fixed Trac #5113 (again) on the 7.10 branch,
    by adding an ambient substitution to Subst; see CoreSubst,
    esp Note [IdSubstEnv].
    
    This allowed me to do the impedence-matching in SimplEnv.substExpr
    efficiently (fixing #10370) as well correctly (fixing the latest
    problem with #5113).
    
    This cost me more time than I like to say.  Sigh.


>---------------------------------------------------------------

9e4908b64648416b9ffb95eca88db7c2a596fe46
 compiler/coreSyn/CoreSubst.hs  | 137 +++++++++++++++++++++++++++++++++--------
 compiler/simplCore/SimplEnv.hs | 117 ++++++++++++-----------------------
 compiler/simplCore/Simplify.hs |   2 +-
 compiler/specialise/Rules.hs   |   8 +--
 4 files changed, 155 insertions(+), 109 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 9e4908b64648416b9ffb95eca88db7c2a596fe46


More information about the ghc-commits mailing list