On Thu, Dec 8, 2011 at 2:02 PM, Han Shen(沈涵) <shen...@google.com> wrote:
> +/* Address taken on struct. */
> +int foo10()
> +{
> +  struct BB bb;
> +  int i;
> +  memset(&bb, 5, sizeof bb);
> +  for (i = 0; i < 10; ++i)
> +    {
> +      bb.one = i;
> +      bb.two = bb.one + bb.two;
> +      bb.three = bb.one + bb.two + bb.three;
> +    }
> +  return bb.three;
> +}

The above testcase could be optimized such that it does not need bb
has its address taken.

Thanks,
Andrew Pinski

Reply via email to