[commit: ghc] wip/T9136: Refactor reassociation (1c6d937)
git at git.haskell.org
git at git.haskell.org
Fri May 23 19:42:41 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T9136
Link : http://ghc.haskell.org/trac/ghc/changeset/1c6d93770c075ff002f6eac67d6baf8b56d9a44d/ghc
>---------------------------------------------------------------
commit 1c6d93770c075ff002f6eac67d6baf8b56d9a44d
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Fri May 23 20:22:33 2014 +0200
Refactor reassociation
by putting all the steps in one function. This way, the code is
readable, and it is easier to cater for the different combinations of
„am I being called for + or -“ and „am I being called for Int or Word“.
>---------------------------------------------------------------
1c6d93770c075ff002f6eac67d6baf8b56d9a44d
compiler/prelude/PrelRules.lhs | 155 ++++++++++++++--------
testsuite/tests/simplCore/should_compile/Makefile | 2 +-
testsuite/tests/simplCore/should_compile/T9136.hs | 6 +
3 files changed, 106 insertions(+), 57 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 1c6d93770c075ff002f6eac67d6baf8b56d9a44d
More information about the ghc-commits
mailing list