Do you think if statement as expression would be nice to have in D?
Timon Gehr
timon.gehr at gmx.ch
Sun Jun 12 18:13:51 UTC 2022
On 6/8/22 03:30, Walter Bright wrote:
>
>> I want to help with this and just today I have fixed a backend issue
>> but I just wanted to say some things about it.
>
> That's fine, that's what the forums are for! And it gives me an
> opportunity to help out.
>
> The only structural problem with the backend I've discovered is it
> cannot embed goto nodes in the tree structure, so it can't inline loops.
> I doubt it is that big a problem, because loops intrinsically are hardly
> worth inlining.
Inlining a function (even with a loop) can enable further optimizations
that depend on additional information that's available at the call site.
More information about the Digitalmars-d
mailing list