Improve the very simple optimiser slightly
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 18 Feb 2019 13:46:35 +0000 (13:46 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Wed, 20 Feb 2019 15:17:34 +0000 (10:17 -0500)
commit5eeefe4c1e007ea2098f241634b48a4dada785a5
treee1755a98ac5bc6b2ca90f8f4d9f99bbadb320a03
parente86606f2dd25a6ea55ed29a0434b82cf862c2544
Improve the very simple optimiser slightly

There was a missing case in the very simple optimiser,
CoreOpt.simpleOptExpr, which led to Trac #13208 comment:2.

In particular, in simple_app, if we find a Let, we should
just float it outwards. Otherwise we leave behind some
easy-to-reduce beta-redexes.
compiler/coreSyn/CoreOpt.hs
testsuite/tests/deSugar/should_compile/Makefile
testsuite/tests/deSugar/should_compile/T13208.hs [new file with mode: 0644]
testsuite/tests/deSugar/should_compile/T13208.stdout [new file with mode: 0644]
testsuite/tests/deSugar/should_compile/all.T