Re:The gold standard of optimization: A look under the hood ...
by tialaramex on Monday March 23, 2026 @09:55AM
(#47489608)
The 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.
Re:The gold standard of optimization: A look under the hood ...
by WalterBright on Monday March 23, 2026 @03:31PM
(#47494068)
Yes, one of the unexpected problems I ran into is one optimization undoing another one, and the optimizer would flip-flop between the two states.
Fortunately, D compilers gdc and ldc take advantage of the gcc and llvm optimizers to stay even with everyone else.