>>7Which one? All I see is that the sequences in
>>3,4 are creating
more dependency chains than necessary, and I'll let you figure out what's wrong with
>>1.
>>8What the fuck are you blabbering on about? Your vague abstract bullshite means nothing. Are you one of those stupid academics who focuses on idiotic microbenchmark optimsations?
except ICC to a degree
Does the fact that ICC pwns the shit out of every other compiler mean anything? Maybe you should see what the real leaders are doing instead of sticking your head in the sand and preaching abour your theoretical "optimizations" that don't actually make a winner. Instruction count is
always important for anything else. Incidentally, that's what lead to
http://funroll-loops.info/Here's another fun one I found:
movzx ecx, word [ecx]
mov eax, ecx
shr eax, 15
shl eax, 1
mov edx, ecx
shr edx, 14
and edx, 1
or eax, edx
mov edx, ecx
shr edx, 13
shl eax, 1
and edx, 1
or eax, edx
mov edx, ecx
shl eax, 9
shr edx, 4
and edx, 511
or eax, edx
shl eax, 4
and ecx, 15
or eax, ecx
ret
What does this 22-instruction-function do?
Nothing. Absolutely nothing. I'll let the reader decide whether the compiler or programmer is the stupid one here...