diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2021-07-16 09:22:24 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-07-19 19:38:21 -0400 |
commit | 535123e4f6505a148ccaa536c21282a87c42669c (patch) | |
tree | e971e86b039acc8e508483c09a3a0c4399b3e3b6 /hadrian | |
parent | 3e8b39eaf098769d33c9a46657c18a277397424c (diff) | |
download | haskell-535123e4f6505a148ccaa536c21282a87c42669c.tar.gz |
Don't duplicate constructors in the simplifier
Ticket #20125 showed that the Simplifier could sometimes duplicate a
constructor binding. CSE would often eliminate it later, but doing it
in the first place was utterly wrong.
See Note [Do not duplicate constructor applications] in Simplify.hs
I also added a short-cut to Simplify.simplNonRecX for the case
when the RHS is trivial. I don't think this will change anything,
just make the compiler run a tiny bit faster.
Diffstat (limited to 'hadrian')
0 files changed, 0 insertions, 0 deletions