This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] tree level if-conversion for vectorizer
- From: Ayal Zaks <ZAKS at il dot ibm dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Diego Novillo <dnovillo at redhat dot com>, Dorit Naishlos <DORIT at il dot ibm dot com>, Devang Patel <dpatel at apple dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 2 Sep 2004 14:50:47 +0300
- Subject: Re: [PATCH] tree level if-conversion for vectorizer
Richard Henderson <rth@redhat.com> wrote on 01/09/2004 23:27:17:
> On Wed, Sep 01, 2004 at 11:04:00AM +0300, Ayal Zaks wrote:
> > There may be another alternative for conditional stores. If the
compiler
> > has some scratch-pad address, into which it can always store without
> > causing any trouble, we could do
> >
> > t = (COND ? &A[i] : scratch-pad-address)
> > *t = x
> >
> > which also applies to conditional loads.
>
> I guess you could do that, but given that we're doing all this
> for the vectorizer, is this useful at all?
You're right; if-cvt should simplify memory-access-patterns to support the
vectorizer's block loads and stores.
Ayal.