[cfe-dev] disabling loop idiom recognizer in clang

Arash Partow arash at partow.net
Thu Apr 28 22:25:06 PDT 2011


On 29/04/2011 9:08 AM, Damjan Marion wrote:
> It is too smart :)
>
> # arm-none-eabi-objdump -S inflate-tramp.o | grep -B 2 -A 2 memset
>       b64:	858d0030 	strhi	r0, [sp, #48]	; 0x30
>       b68:	e24b0064 	sub	r0, fp, #100	; 0x64
>       b6c:	ebfffffe 	bl	0<memset>
> 	i=0; for (; i<  BMAX+1; i++) c [i] = 0;
>
>
>

I would think that should be the case as then similar while-loop constructions would not be optimized either.







More information about the cfe-dev mailing list