[commit: ghc] master: Remove unused LiveVars and SRT fields of StgCase (023fc92)
git at git.haskell.org
git at git.haskell.org
Mon Feb 8 21:58:44 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/023fc92f6f98a8bd003ce20083d3682aec865cb5/ghc
>---------------------------------------------------------------
commit 023fc92f6f98a8bd003ce20083d3682aec865cb5
Author: Ömer Sinan Ağacan <omeragacan at gmail.com>
Date: Mon Feb 8 16:18:23 2016 -0500
Remove unused LiveVars and SRT fields of StgCase
We also need to update `stgBindHasCafRefs` assertion with this change,
as we no longer have the pre-computed SRT, LiveVars etc. We rename it to
`topStgBindHasCafRefs` and implement it like this:
A non-updatable top-level binding may refer to a CAF by referring to a
top-level definition with CAFs. A top-level definition may have CAFs if
it's updatable. At this point (because this is done after TidyPgm)
top-level Ids (whether imported or defined in this module) are
GlobalIds, so the top-levelness test is easy. (see also comments in the
code)
Reviewers: bgamari, simonpj, austin
Reviewed By: simonpj
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1889
GHC Trac Issues: #11550
>---------------------------------------------------------------
023fc92f6f98a8bd003ce20083d3682aec865cb5
compiler/codeGen/StgCmm.hs | 2 +-
compiler/codeGen/StgCmmBind.hs | 4 +-
compiler/codeGen/StgCmmExpr.hs | 6 +-
compiler/main/HscMain.hs | 4 +-
compiler/profiling/SCCfinal.hs | 24 ++---
compiler/simplStg/StgStats.hs | 6 +-
compiler/simplStg/UnariseStg.hs | 26 ++---
compiler/stgSyn/CoreToStg.hs | 226 ++++++++++------------------------------
compiler/stgSyn/StgLint.hs | 8 +-
compiler/stgSyn/StgSyn.hs | 170 ++++++++++++++----------------
10 files changed, 164 insertions(+), 312 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 023fc92f6f98a8bd003ce20083d3682aec865cb5
More information about the ghc-commits
mailing list