Remove unreliable Core Lint empty case checks
authorDavid Feuer <david.feuer@gmail.com>
Thu, 9 Nov 2017 22:54:11 +0000 (17:54 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 9 Nov 2017 23:31:22 +0000 (18:31 -0500)
commit6b52b4c832f888f7741a4ba0fec1fdac10244f6d
treebf8c9b5ab331b717a1c78266db98c6f208a4518d
parent0656cb4add7c45382f6a5c3234ad5c75d3e5f112
Remove unreliable Core Lint empty case checks

Trac #13990 shows that the Core Lint checks for empty case are
unreliable, and very hard to make reliable. The consensus (among
simonpj, nomeata, and goldfire) seems to be that they should be
removed altogether. Do that.

Add test

Reviewers: goldfire, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

GHC Trac Issues: #13990

Differential Revision: https://phabricator.haskell.org/D4161
compiler/coreSyn/CoreLint.hs
testsuite/tests/simplCore/should_compile/T13990.hs [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/all.T