> On Apr 28, 2020, at 1:07 AM, Ben Gamari <[email protected]> wrote:
> 
> Sounds like it would be worth a quick try.

I agree with Ben. I generally expect not to see nested casts -- the Cast 
constructor should rarely (never?) appear as an expression outside of mkCast. 
But you're right about the missing optimization opportunity if we do the naive 
thing.

Let us know if you run into trouble with the "quick try"!

Richard
_______________________________________________
ghc-devs mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to