|
|
|
|
|
by BeeOnRope
2383 days ago
|
|
I'm not sure if you were implying it or just using it as example of another type of unhelpful claim, but this test does not involve AVX-512. I agree using Westmere isn't necessarily the best approach, but there is no difference in this case with either -march=native or -march=znver1. The loop is small and simple, with only 9 instructions and compiles more or less the same regardless of march setting (I observed some basically no-op changes such as a mov and blsr swapping places). Here's the assembly (for the second test, with the bigger IPC gap): top:
tzcnt r8,rcx
add r8d,edx
mov DWORD PTR [rdi+rax*4],r8d
mov eax,DWORD PTR [rsi]
inc eax
blsr rcx,rcx
mov DWORD PTR [rsi],eax
jne .top
|
|
Even worse! Is this a defense, because it's remarkably unhelpful as one.
The blog post was clearly a cry for attention for some project -- let's just use some clickbait IPC claims to gain it -- and continually alluded to a whole project -- an extreme niche project that still wouldn't have any relevance. But instead it's a meaningless, completely misrepresentative micro-loop.