Float unboxed expressions by boxing
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 9 Dec 2016 00:04:00 +0000 (00:04 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 12 Dec 2016 16:38:42 +0000 (16:38 +0000)
commitbc3d37dada357b04fc5a35f740b4fe7e05292b06
tree0c7f700939e1a649ed1f30ed6b7d866a592c361e
parentd03dd23744799f7df1a73df26d7833887d8e97e9
Float unboxed expressions by boxing

This patch makes GHC's floating more robust, by allowing it
to float unboxed expressions of at least some common types.

See Note [Floating MFEs of unlifted type] in SetLevels.

This was all provoked by Trac #12603
compiler/prelude/TysPrim.hs
compiler/prelude/TysWiredIn.hs
compiler/simplCore/SetLevels.hs
testsuite/tests/simplCore/should_compile/Makefile
testsuite/tests/simplCore/should_compile/T12603.hs [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/T12603.stdout [new file with mode: 0644]
testsuite/tests/simplCore/should_compile/all.T