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 PR70729] The second part of patch.


On Thu, Jun 30, 2016 at 04:25:16PM +0200, Thomas Schwinge wrote:
> Hi!
> 
> On Thu, 30 Jun 2016 16:48:25 +0300, Yuri Rumyantsev <ysrumyan@gmail.com> wrote:
> > Thanks for your help.
> > Could you please look at the following simple patch which cures
> > regression - we need to nullify loop safelen  field in
> > adjust_simduid_builtins:
> > 
> > diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c
> > index 2669813..f70380c 100644
> > --- a/gcc/tree-vectorizer.c
> > +++ b/gcc/tree-vectorizer.c
> > @@ -204,6 +204,10 @@ adjust_simduid_builtins (hash_table<simduid_to_vf> *htab)
> >           gcc_assert (TREE_CODE (arg) == SSA_NAME);
> >           simduid_to_vf *p = NULL, data;
> >           data.simduid = DECL_UID (SSA_NAME_VAR (arg));
> > +         /* Need to nullify safelen fielf of loop since it's vale is not
> > +            valid after transformation.  */

s/fielf/field/
s/vale/value/

> > +         if (bb->loop_father && bb->loop_father->safelen > 0)
> > +           bb->loop_father->safelen = 0;
> >           if (htab)
> >             {
> >               p = htab->find (&data);

	Jakub


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