This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: improving auto increment expressions detection across basic blocks.
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Ramana Radhakrishnan" <ramana dot r at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 7 Apr 2008 08:41:47 -0700
- Subject: Re: improving auto increment expressions detection across basic blocks.
- References: <67ea2eb0804070331s4c07c6edra6481b6c58f82db5@mail.gmail.com>
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