Hi Jakub,

> So given this and the fact there is no real gain from emitting tailcalls in 
> eh_return
> functions, wouldn't it make more sense to always block tailcalls in the 
> mid-end?

> No.  E.g. x86 handles that just fine, 

That's great to hear, but all the other targets still need to be fixed somehow.

Is the tailcall optimization so important for this case it is worth forcing 20+ 
targets
to find and fix this issue? Given eh_return is already overly complex that seems
like a lot of effort that could be used better on more productive optimizations.

And looking at the generated code, emitting a tailcall for this case is 
actually a
de-optimization since the large eh_return epilog must be repeated for every
tailcall.

Wilco

Reply via email to