This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: improving auto increment expressions detection across basic blocks.


On Mon, Apr 7, 2008 at 3:31 AM, Ramana Radhakrishnan <ramana.r@gmail.com> wrote:
>  The basic case is as explained below.
>
>  for (i = 0; i < 100; i ++)
>  {
>   if (....)
>  {
>   a[i] = something;
>  }
>  else
>   a[i] = something else..
>
>  }

If it is this case, I think the store to a[i] should really sinked
below the if statement instead of doing anything fancy with
autoincrement.

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]