This is the mail archive of the gcc-patches@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: [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]


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