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: [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


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