3 ms·
The -march=znver2 gcc build target produces, in my tests, very poor code. I get better performance, at least on my son's 3600, by targeting haswell. I have al
by ncmncm 6y ago
The -march=znver2 gcc build target produces, in my tests, very poor code. I get better performance, at least on my son's 3600, by targeting haswell.
I have also recently discovered that an optimization for vanilla amd64 still in Clang, and in Gcc up to release 8, has been stripped from or disabled in gcc-9 and later. A switch statement that checks for a few small integer values used to be converted to a "bt" instruction against a bitmap, but starting in gcc-9, that becomes a big dumb jump table.