3 ms·
> “play with C until the compiler does the right thing” is brittle It's brittle depending on your methods. If you understand a little about optimizers and giv
by veltas 10mo ago
> “play with C until the compiler does the right thing” is brittle
It's brittle depending on your methods. If you understand a little about optimizers and give the compiler the hints it needs to do the right things, then that should work with any modern compiler, and is more portable (and easier) than hand-optimizing in assembly straight away.
- andrepd 10mo agoWell in my case I had to file an issue with the compiler (llvm) to fix the bad codegen. Credit to them, it was lightning fast and they merged a fix within days. gcc optimised it correctly though.