[commit: ghc] master: Desugar static forms to makeStatic calls. (13a8521)
git at git.haskell.org
git at git.haskell.org
Fri Jan 13 20:37:40 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/13a85211040f67977d2a2371f4087d1d2ebf4de4/ghc
>---------------------------------------------------------------
commit 13a85211040f67977d2a2371f4087d1d2ebf4de4
Author: Facundo DomÃnguez <facundo.dominguez at tweag.io>
Date: Mon Jan 9 14:29:32 2017 -0300
Desugar static forms to makeStatic calls.
Summary:
Using makeStatic instead of applications of the StaticPtr data
constructor makes possible linting core when unboxing strict
fields.
Test Plan: ./validate
Reviewers: simonpj, goldfire, austin, bgamari, hvr
Reviewed By: simonpj
Subscribers: RyanGlScott, mboes, thomie
Differential Revision: https://phabricator.haskell.org/D2930
GHC Trac Issues: #12622
>---------------------------------------------------------------
13a85211040f67977d2a2371f4087d1d2ebf4de4
compiler/coreSyn/CoreLint.hs | 102 ++++----
compiler/coreSyn/CoreUtils.hs | 25 +-
compiler/coreSyn/MkCore.hs | 11 +-
compiler/deSugar/DsExpr.hs | 63 +----
compiler/main/StaticPtrTable.hs | 275 ++++++++++++++++-----
compiler/main/TidyPgm.hs | 32 +--
compiler/prelude/PrelNames.hs | 11 +
compiler/simplCore/SetLevels.hs | 6 +-
compiler/simplCore/SimplCore.hs | 59 +----
compiler/typecheck/TcExpr.hs | 1 +
libraries/base/GHC/StaticPtr/Internal.hs | 27 ++
libraries/base/base.cabal | 1 +
testsuite/tests/codeGen/should_run/T12622.hs | 19 ++
.../tests/codeGen/should_run/T12622.stdout | 0
testsuite/tests/codeGen/should_run/T12622_A.hs | 15 ++
testsuite/tests/codeGen/should_run/all.T | 1 +
16 files changed, 386 insertions(+), 262 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 13a85211040f67977d2a2371f4087d1d2ebf4de4
More information about the ghc-commits
mailing list