Make Specialise work with casts
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 28 Feb 2017 17:11:33 +0000 (12:11 -0500)
committerDavid Feuer <David.Feuer@gmail.com>
Tue, 28 Feb 2017 17:11:35 +0000 (12:11 -0500)
commit1990bb0df51250519b555ec271c693d289dd9802
tree8da49770d5d46784dfcd0b642f0e78082d242c5c
parent29b57238e53ca7feae9257ed6fa1567b57aabe6a
Make Specialise work with casts

With my upcoming early-inlining patch it turned out that Specialise
was getting stuck on casts.  This patch fixes it; see Note
[Account for casts in binding] in Specialise.

Reviewers: austin, goldfire, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D3192
compiler/coreSyn/CoreSubst.hs
compiler/specialise/Specialise.hs
compiler/types/Coercion.hs
compiler/types/Unify.hs