StgCmmMonad: Remove unnecessary use of unboxed tuples
authorBen Gamari <bgamari.foss@gmail.com>
Tue, 26 Sep 2017 12:33:34 +0000 (08:33 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 26 Sep 2017 15:59:53 +0000 (11:59 -0400)
commit6e7c09d083358b07401cbecc36043be5dfe15f84
tree5390453deeca6da2b203153f0959a39645e00476
parentc41ccbfa8aaeb99dd9a36cb3d99993f0fa039cdc
StgCmmMonad: Remove unnecessary use of unboxed tuples

The simplifier can simplify this without any trouble. Moreover, the
unboxed tuples cause bootstrapping issues due #14123.

I also went ahead and inlined a few definitions into the Monad instance.

Test Plan: Validate

Reviewers: austin, simonmar

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D4026
compiler/codeGen/StgCmm.hs
compiler/codeGen/StgCmmMonad.hs