3 ms·
My experience with optimizing compilers is that generated code is often frustratingly close to optimal (given the source is well written and taking account the
by stephc_int13 4y ago
My experience with optimizing compilers is that generated code is often frustratingly close to optimal (given the source is well written and taking account the constraints of the target arch).
It is perfectly reasonable to take a look at the output on Godbolt, tweak it a bit and call it a day.
Maintaining a full assembly language version of the same code is rarely justifiable.
And yet, I understand the itch, especially because there are quite often some low-hanging fruits to grab.
- evancox100 4y agoThis may be true for scalar code but it seems like the compilers still aren’t quite there with vector code.
- metadat 4y agoFor anyone who, like me, need / wants a refresher primer on vectorization: https://stackoverflow.com/questions/1422149/what-is-vectorization https://stackoverflow.com/questions/1422149/what-is-vectoriz...