This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR 32230 - check that dr's base is not a constant
- From: Dorit Nuzman <DORIT at il dot ibm dot com>
- To: Ira Rosen <IRAR at il dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>
- Date: Mon, 2 Jul 2007 13:01:20 +0300
- Subject: Re: [patch] Fix PR 32230 - check that dr's base is not a constant
>
>
> Zdenek Dvorak <rakdver@kam.mff.cuni.cz> wrote on 02/07/2007 00:20:39:
>
> > this should be fixed only in vectorizer, IMHO.
> >
> > Zdenek
>
> I moved the check to the vectorizer.
>
> Bootstrapped and tested on ppc-linux.
>
> O.K. for mainline?
>
This is ok. Just one tiny bit - I think you can rewrite this:
+ if (vect_print_dump_info (REPORT_UNVECTORIZED_LOOPS))
+ {
+ fprintf (vect_dump, "not vectorized: base addr of dr is a
");
+ fprintf (vect_dump, "constant");
+ }
into:
+ if (vect_print_dump_info (REPORT_UNVECTORIZED_LOOPS))
+ fprintf (vect_dump, "not vectorized: base addr of dr is a "
+ "constant");
thanks,
dorit
> Ira
>
>
> ChangeLog:
>
> PR tree-optimization/32230
> PR tree-optimization/32477
> * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base
> address is a constant.
>
> (See attached file: pr32230.txt)
> [attachment "pr32230.txt" deleted by Dorit Nuzman/Haifa/IBM]