[commit: ghc] master: Refactor WorkWrap, get rid of worthSplittingArgDmd (7cdf141)
git at git.haskell.org
git at git.haskell.org
Thu Jan 16 16:48:26 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/7cdf141d7234992466f0ce790e6659c859568783/ghc
>---------------------------------------------------------------
commit 7cdf141d7234992466f0ce790e6659c859568783
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Thu Jan 16 14:42:31 2014 +0000
Refactor WorkWrap, get rid of worthSplittingArgDmd
Instead of first checking whether splitting is useful, and then firing
up the worker-wrapper-machinery, which will do the same checks again, we
now simply generate a worker and wrapper, and while doing so keep track
of whether what we did was in any way useful.
So now there is only one place left where we decide whether we want to
do w/w, and that place has access to more information, in particular the
actual types at hand.
>---------------------------------------------------------------
7cdf141d7234992466f0ce790e6659c859568783
compiler/basicTypes/Demand.lhs | 28 -------------
compiler/stranal/WorkWrap.lhs | 90 +++++++++++++++++++---------------------
compiler/stranal/WwLib.lhs | 87 +++++++++++++++++++++++---------------
3 files changed, 96 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 7cdf141d7234992466f0ce790e6659c859568783
More information about the ghc-commits
mailing list