[commit: ghc] master: Simplify and improve CSE (b78fa75)
git at git.haskell.org
git at git.haskell.org
Fri Jan 20 14:39:28 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/b78fa759bfb405e3dc20d5e4bbb088989d17eb8b/ghc
>---------------------------------------------------------------
commit b78fa759bfb405e3dc20d5e4bbb088989d17eb8b
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Fri Jan 20 12:05:16 2017 +0000
Simplify and improve CSE
Trac #13156 showed a lost opportunity for CSE. I found that it was
easy to fix, and it had the nice side effect of rendering a previous
nasty case, described in Note [Corner case for case expressions],
unnecessary.
Simpler code, does more. Great.
>---------------------------------------------------------------
b78fa759bfb405e3dc20d5e4bbb088989d17eb8b
compiler/simplCore/CSE.hs | 70 ++++++++++++----------
testsuite/tests/simplCore/should_compile/Makefile | 5 ++
testsuite/tests/simplCore/should_compile/T13156.hs | 42 +++++++++++++
.../tests/simplCore/should_compile/T13156.stdout | 2 +
testsuite/tests/simplCore/should_compile/all.T | 2 +-
5 files changed, 89 insertions(+), 32 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 b78fa759bfb405e3dc20d5e4bbb088989d17eb8b
More information about the ghc-commits
mailing list