Re: Recognize vec_perm_expr in a constructor of bit_field_ref

2012-09-11 Thread Marc Glisse
On Tue, 11 Sep 2012, Richard Guenther wrote: On Tue, Sep 11, 2012 at 1:07 PM, Marc Glisse wrote: Hello, here is a patch that turns {v[1],v[0]} into vec_perm_expr(v,v,{1,0}) if the target is ok with it. I am attaching 2 versions of the patch. p-good is the one that passes testing. p-bad, wher

Re: Recognize vec_perm_expr in a constructor of bit_field_ref

2012-09-11 Thread Marc Glisse
On Tue, 11 Sep 2012, Richard Guenther wrote: On Tue, Sep 11, 2012 at 1:07 PM, Marc Glisse wrote: Hello, here is a patch that turns {v[1],v[0]} into vec_perm_expr(v,v,{1,0}) if the target is ok with it. I am attaching 2 versions of the patch. p-good is the one that passes testing. p-bad, wher

Re: Recognize vec_perm_expr in a constructor of bit_field_ref

2012-09-11 Thread Richard Guenther
On Tue, Sep 11, 2012 at 1:07 PM, Marc Glisse wrote: > Hello, > > here is a patch that turns {v[1],v[0]} into vec_perm_expr(v,v,{1,0}) if the > target is ok with it. > > I am attaching 2 versions of the patch. p-good is the one that passes > testing. p-bad, where I rely on fold_stmt to detect ident

Recognize vec_perm_expr in a constructor of bit_field_ref

2012-09-11 Thread Marc Glisse
Hello, here is a patch that turns {v[1],v[0]} into vec_perm_expr(v,v,{1,0}) if the target is ok with it. I am attaching 2 versions of the patch. p-good is the one that passes testing. p-bad, where I rely on fold_stmt to detect identity permutations, ICEs towards the end of the pass while che