Use better map operations in CoreMonad
authorDavid Feuer <david.feuer@gmail.com>
Wed, 8 Feb 2017 02:34:00 +0000 (21:34 -0500)
committerDavid Feuer <David.Feuer@gmail.com>
Wed, 8 Feb 2017 02:34:01 +0000 (21:34 -0500)
commitd5e9b7f5b84440e0e81515773c8fa31cbaebfd57
tree6a9a400073e302aca05b0c57d70566c35629a436
parent5ce39f6395efd81f9cc0e0aa2f36a7552ed75f7c
Use better map operations in CoreMonad

Use strict `unionWith` where apparently appropriate, and use
strict `insertWith` rather than lookup followed by insertion.

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D3099
compiler/simplCore/CoreMonad.hs