Combine identical case alternatives in CSE
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 28 Feb 2017 21:00:49 +0000 (16:00 -0500)
committerDavid Feuer <David.Feuer@gmail.com>
Tue, 28 Feb 2017 21:00:50 +0000 (16:00 -0500)
commit55efc9718b520ef354e32c15c4b49cdfecce412f
treec9cc228cadd7bb9fb2d1a80f52bbc4fb70c8afee
parentdefef5276bf0997237ea5ecc448f686bb5e85940
Combine identical case alternatives in CSE

See Note [Combine case alternatives] in CSE.  This opportunity
surfaced when I was was studying early inlining.  It's easy (and
cheap) to exploit, and sometimes makes a worthwhile saving.

Reviewers: austin, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D3194
compiler/simplCore/CSE.hs
testsuite/tests/numeric/should_compile/T7116.stdout