[commit: ghc] master: Fix join-point decision (66ff794)

git at git.haskell.org git at git.haskell.org
Wed Jan 10 08:21:07 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/66ff794fedf6e81e727dc8f651e63afe6f2a874b/ghc

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

commit 66ff794fedf6e81e727dc8f651e63afe6f2a874b
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Jan 9 13:53:09 2018 +0000

    Fix join-point decision
    
    This patch moves the "ok_unfolding" test
       from  CoreOpt.joinPointBinding_maybe
       to    OccurAnal.decideJoinPointHood
    
    Previously the occurrence analyser was deciding to make
    something a join point, but the simplifier was reversing
    that decision, which made the decision about /other/ bindings
    invalid.
    
    Fixes Trac #14650.


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

66ff794fedf6e81e727dc8f651e63afe6f2a874b
 compiler/coreSyn/CoreOpt.hs                        | 44 +------------
 compiler/simplCore/OccurAnal.hs                    | 68 +++++++++++++++----
 testsuite/tests/simplCore/should_compile/T14650.hs | 76 ++++++++++++++++++++++
 testsuite/tests/simplCore/should_compile/all.T     |  1 +
 4 files changed, 136 insertions(+), 53 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 66ff794fedf6e81e727dc8f651e63afe6f2a874b


More information about the ghc-commits mailing list