Simple test-case:
#include <stdio.h>
int main() {
for(int i = 100; i--; )
puts("hello worldn");
}
ICC 13 update 1 with /O3 generates this:
loc_401037:
push offset aHelloWorld ; "hello world\n"
call sub_401060
add esp, 4
dec esi
cmp esi, 0FFFFFFFFh
jnz short loc_401037
cmp does totally noghing. GCC and MSVC generates better code without cmp.
BTW: when will be new maybe beta release of ICC with delegating constructors and other new C++ features?





