[commit: ghc] master: Do Note [Improving seq] always (f0d98fc)
git at git.haskell.org
git at git.haskell.org
Fri Apr 7 15:23:58 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/f0d98fc6cdde26bf43a04d9f01b6ad2f4c88f0b9/ghc
>---------------------------------------------------------------
commit f0d98fc6cdde26bf43a04d9f01b6ad2f4c88f0b9
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Fri Apr 7 16:19:56 2017 +0100
Do Note [Improving seq] always
This patch fixes Trac #13468, and at the same time makes the
code simpler and more uniform. In particular, I've eliminated
the awkward conflict between the old built-in rule for seq
(which elimianted a cast), and the desire to make case scrutinse
a data type by doing type-family reduction (which adds a cast).
Nice.
>---------------------------------------------------------------
f0d98fc6cdde26bf43a04d9f01b6ad2f4c88f0b9
compiler/basicTypes/MkId.hs | 40 +-----
compiler/simplCore/Simplify.hs | 138 ++++++++++++---------
testsuite/tests/simplCore/should_compile/Makefile | 6 +
testsuite/tests/simplCore/should_compile/T13468.hs | 12 ++
testsuite/tests/simplCore/should_compile/all.T | 4 +
5 files changed, 104 insertions(+), 96 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 f0d98fc6cdde26bf43a04d9f01b6ad2f4c88f0b9
More information about the ghc-commits
mailing list