[Issue 23472] scope(sucess) generate exception handling code.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 27 02:00:33 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23472
--- Comment #6 from deadalnix <deadalnix at gmail.com> ---
You see what I mean. The backend is not bound by this, it can hold onto the
value as an rvalue and return it.
An alternative here is to remove empty exception handling code, such as empty
finally blocks, or catch blocks that immediately rethrow. In fact, this is
probably something we want standalone in LDC's optimizer pipeline, as I'd
expect it could find numerous wins.
--
More information about the Digitalmars-d-bugs
mailing list