This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [autovect] [patch] vectorize in cases when number of iterations may be zero
- From: Victor Kaplansky <VICTORK at il dot ibm dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Jun 2006 21:19:10 +0300
- Subject: Re: [autovect] [patch] vectorize in cases when number of iterations may be zero
> > 2. The patch makes expr_invariant_in_loop_p to consider DECL
expressions to
> > consider as loop-invariant.
>
> Uh, well that would be very wrong :)
>
> You'd need to verify it's not actually set in the loop.
Probably I'll need some help to do it right way. The actuall expression
which is passed to expr_invariant_in_loop_p looks like this:
at /home/victork/autovect/gcc/gcc/tree-data-ref.c:1036
1036 if (!expr_invariant_in_loop_p (loop, init))
(gdb) p debug_generic_expr (init)
&input_bufD.1868[(<unnamed type>) lagD.18880_550]
$10 = void