Re: Why doesn’t the simple optimizer fuse casts?

Richard Eisenberg rae at richarde.dev
Tue Apr 28 10:09:51 UTC 2020



> On Apr 28, 2020, at 1:07 AM, Ben Gamari <ben at smart-cactus.org> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20200428/3ee343e9/attachment.html>


More information about the ghc-devs mailing list