Minor refactoring in CSE
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 4 Jan 2017 13:14:30 +0000 (13:14 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 5 Jan 2017 08:51:23 +0000 (08:51 +0000)
commitc909e6ec333667878b17f127f75204a14256340f
tree87299854c45d88711281c5cd416ab71684bf399b
parent266464186cfd1c575dd3ffa188589eceb12dc66b
Minor refactoring in CSE

I noticed that CSE.addBinding was always returning one of its own
inputs, so I refactored to avoid doing so.

No change in behaviour.
compiler/simplCore/CSE.hs