cmm/CBE: Use foldLocalRegsDefd
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 21 Sep 2017 22:02:36 +0000 (18:02 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 21 Sep 2017 22:02:37 +0000 (18:02 -0400)
commit9aa73892e10e90a1799b9277da593e816a827364
treec64d7a5ce4c625192fcfb2f01080d76910ab7406
parentddb38b51b8211247c2e31ddfcb96fe86479b9a9b
cmm/CBE: Use foldLocalRegsDefd

Simonpj suggested this as a follow-on to #14226 to avoid code
duplication. This also gives us the ability to CBE cases involving
foreign calls for free.

Test Plan: Validate

Reviewers: austin, simonmar, simonpj

Reviewed By: simonpj

Subscribers: michalt, simonpj, rwbarton, thomie

GHC Trac Issues: #14226

Differential Revision: https://phabricator.haskell.org/D3999
compiler/cmm/CmmCommonBlockElim.hs
compiler/cmm/CmmPipeline.hs