Simplify and improve CSE
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 20 Jan 2017 12:05:16 +0000 (12:05 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 20 Jan 2017 14:38:57 +0000 (14:38 +0000)
commitb78fa759bfb405e3dc20d5e4bbb088989d17eb8b
treed718418de8a084aac97bb258747abc4a59718fb5
parent9be18ea4e5cbc53ce7769a30275332d68a4ab6b9
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.
compiler/simplCore/CSE.hs
testsuite/tests/simplCore/should_compile/Makefile
testsuite/tests/simplCore/should_compile/T13156.hs [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/T13156.stdout [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/all.T