summaryrefslogtreecommitdiff
path: root/compiler/GHC/SysTools/Process.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2021-07-16 09:22:24 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-07-19 19:38:21 -0400
commit535123e4f6505a148ccaa536c21282a87c42669c (patch)
treee971e86b039acc8e508483c09a3a0c4399b3e3b6 /compiler/GHC/SysTools/Process.hs
parent3e8b39eaf098769d33c9a46657c18a277397424c (diff)
downloadhaskell-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 'compiler/GHC/SysTools/Process.hs')
0 files changed, 0 insertions, 0 deletions