Don't do binder-swap for GlobalIds
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 21 Feb 2019 09:34:01 +0000 (09:34 +0000)
committerMatthew Pickering <matthewtpickering@gmail.com>
Fri, 22 Feb 2019 06:56:08 +0000 (06:56 +0000)
commit0eb7cf03da3783ca887d5de44d312cf6f3a4113c
treebf2c4ace3c6729d6bbef8dbffb26089a581ae681
parenta07f46ead660caa7fc6073e7b9bd1c8b7c4cdfe2
Don't do binder-swap for GlobalIds

This patch disables the binder-swap transformation in the
(relatively rare) case when the scrutinee is a GlobalId.
Reason: we are getting Lint errors so that GHC doesn't
even validate.  Trac #16346.

This is NOT the final solution -- it's just a stop-gap
to get us running again.

The final solution is in Trac #16296
compiler/simplCore/OccurAnal.hs