On Wed, Feb 4, 2009 at 1:18 PM, Дмитрий Дьяченко <dim...@gmail.com> wrote:
> The following code
>
> int bar(int *global)
> {
>    int local;
>    if(&local != global)
>        return 0;
>    return local;
> }

The issue is that GCC does not figure that global cannot point to
local so it does not optimize away the if statement.

Thanks,
Andrew Pinski

Reply via email to