Re: [PATCH] bswap: Handle vector CONSTRUCTORs [PR96239]

2020-12-16 Thread Richard Biener
On Tue, 15 Dec 2020, Jakub Jelinek wrote: Hi! The following patch teaches the bswap pass to handle for small (2/4/8 byte long) vectors a CONSTRUCTOR by determining if the bytes of the constructor come from non-vector sources and are either nop or bswap and changing the CONSTRUCTOR in that case

[PATCH] bswap: Handle vector CONSTRUCTORs [PR96239]

2020-12-15 Thread Jakub Jelinek via Gcc-patches
Hi! The following patch teaches the bswap pass to handle for small (2/4/8 byte long) vectors a CONSTRUCTOR by determining if the bytes of the constructor come from non-vector sources and are either nop or bswap and changing the CONSTRUCTOR in that case to VIEW_CONVERT_EXPR from scalar integer to t