Re: [RFH] subreg of a vector without going through memory

2012-11-05 Thread Marc Glisse
On Mon, 5 Nov 2012, Richard Sandiford wrote: Marc Glisse writes: * simplify-rtx.c (simplify_subreg): For vectors, create a VEC_SELECT. Probably not helpful, sorry, but a subreg->vec_select transformation feels like it's going in the wrong direction. Going from vec_select to subreg w

Re: [RFH] subreg of a vector without going through memory

2012-11-05 Thread Richard Sandiford
Marc Glisse writes: > * simplify-rtx.c (simplify_subreg): For vectors, create a VEC_SELECT. Probably not helpful, sorry, but a subreg->vec_select transformation feels like it's going in the wrong direction. Going from vec_select to subreg would be OK from a "layering" perspective (although

Re: [RFH] subreg of a vector without going through memory

2012-11-04 Thread Marc Glisse
On Sun, 4 Nov 2012, Marc Glisse wrote: Hello, trying to make some progress on PR 53101, I wrote the attached patch (it might be completely wrong for big endian, I don't know) (it is also missing a check that it isn't a paradoxical subreg) * simplify-rtx.c (simplify_subreg): For vectors

[RFH] subreg of a vector without going through memory

2012-11-04 Thread Marc Glisse
Hello, trying to make some progress on PR 53101, I wrote the attached patch (it might be completely wrong for big endian, I don't know) (it is also missing a check that it isn't a paradoxical subreg) * simplify-rtx.c (simplify_subreg): For vectors, create a VEC_SELECT. However, when I c