Stop the simplifier from removing StaticPtr binds.
authorFacundo Domínguez <facundo.dominguez@tweag.io>
Tue, 28 Jun 2016 01:30:50 +0000 (22:30 -0300)
committerFacundo Domínguez <facundo.dominguez@tweag.io>
Tue, 28 Jun 2016 14:07:59 +0000 (11:07 -0300)
commitdd92c67be573604290560b93890ce4b8eccd40b3
tree63ae544e2d7dd1c626b186b6b6349aa3548b30a5
parentdc62a22279846abe7e84ef57896f0a38f6b7b845
Stop the simplifier from removing StaticPtr binds.

Summary:
We have the FloatOut pass create exported ids for floated StaticPtr
bindings. The simplifier doesn't try to remove those.

This patch also improves on 7fc20b by making a common definition
collectStaticPtrSatArgs to test for StaticPtr binds.

Fixes #12207.

Test Plan: ./validate

Reviewers: simonpj, austin, bgamari, simonmar, goldfire

Reviewed By: simonpj

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2366

GHC Trac Issues: #12207
compiler/coreSyn/CoreLint.hs
compiler/coreSyn/CoreUtils.hs
compiler/main/TidyPgm.hs
compiler/simplCore/SetLevels.hs
compiler/simplCore/SimplCore.hs
testsuite/tests/codeGen/should_run/all.T
testsuite/tests/rts/all.T