2 ms·
I originally got into writing compilers because I was convinced I could write a better code generator. I succeeded for about 10 years in doing very well with co
by WalterBright 8mo ago
I originally got into writing compilers because I was convinced I could write a better code generator. I succeeded for about 10 years in doing very well with code generation. But then all the complexities of the evolving C++ (and D!) took up most of my time, and I haven't been able to work much on the optimizer since.
Fortunately, D compilers gdc and ldc take advantage of the gcc and llvm optimizers to stay even with everyone else.
- tialaramex 8mo agoThe thing which would really help IMNSHO is to nail down the IR to eliminate weird ambiguities where OK optimisation A is valid according to one understanding, optimisation B is valid under another but alas if we use both sometimes it breaks stuff.
- WalterBright 8mo agoYes, one of the unexpected problems I ran into is one optimization undoing another one, and the optimizer would flip-flop between the two states.