This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] lno branch merge - vectorizer patch #3
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Ira Rosen <IRAR at il dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Dorit Naishlos <DORIT at il dot ibm dot com>, Ayal Zaks <ZAKS at il dot ibm dot com>
- Date: Wed, 15 Sep 2004 10:54:12 -0700
- Subject: Re: [patch] lno branch merge - vectorizer patch #3
- Organization: CodeSourcery, LLC
- References: <OFB0669564.9B412D2B-ONC2256F10.00302FAD-C2256F10.0030B011@il.ibm.com>
Ira Rosen wrote:
Hi,
This patch adds vectorization support for additional forms of data
references along with relevant new test-cases.
We now support multidimensional arrays, pointer accesses with initial value
that is not restricted to an SSE_NAME (e.g: p=&a[16]-4B), and array
accesses with initial value that is not restricted to INTEGER_CST (e.g:
a[i+off]). Bootstrapped and passed the vectorizer testcases ans SPEC on
ppc-darwin.
I think you should also run the entire testsuite with the vectorizer
hard-wired on. Have you done that?
+ #define VECT_SMODULO(x,y) ((x) % (y) < 0 ? ((x) % (y) + (y)) : (x) % (y))
This needs a comment.
! if (!evolution_function_is_constant_p (access_fn))
! {
! if (!vect_is_simple_iv_evolution (loop_containing_stmt (DR_STMT
(dr))->num,
! access_fn, &init, &step, true))
! {
! if (vect_debug_details (NULL))
That should be:
if (!e_f_i_c_p (access_fn)
&& !v_i_s_i_e (...)
&& vec_debug_details (NULL))
not three nested ifs. And vec_debug_details should probaby go at the
outside since it will usually be false, avoiding computations implied by
the other functions.
Patch OK with those changes.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com