Do you think if statement as expression would be nice to have in D?
zjh
fqbqrr at 163.com
Tue Jun 7 09:41:34 UTC 2022
On Tuesday, 7 June 2022 at 08:44:27 UTC, max haughton wrote:
>
> This IR and the lack of structure around operations on it is
> why dmd has so many bugs wrt things like SIMD code generation.
> GCC and LLVM learnt the hard way that you need to segment work
> into multiple passes and possibly different data structures
> entirely (either artificially, like LCSSA, or using an entirely
> different IR like GCC's rtl). These are not cheap things to do
> but paying for them also buys you correctness.
>
> dmd should just focus on being the debug compiler i.e. be fast.
> I would much rather have the codebase be clean enough that I
> could easily get it generating code on my AArch64 Mac than have
> it chase after being able to do xyz. I will never actually care
> about dmds ability to optimize something.
However, I hope `'DMD'` can work on the `back end`.` D` author
can make use of his `back-end` knowledge, and do not have to
follow the `'llvm''s` path!
`Llvm` is not necessarily the best
.
More information about the Digitalmars-d
mailing list