Re: [PATCH] Use bswap framework in store-merging (PR tree-optimization/78821)

2017-11-20 Thread Richard Biener
On Thu, 16 Nov 2017, Jakub Jelinek wrote: > Hi! > > This patch uses the bswap pass framework inside of the store merging > pass to handle adjacent stores which produce together a 16/32/64 bit > store of bswapped value (loaded or from SSA_NAME) or identity (usually > only from SSA_NAME, the code p

Re: [PATCH] Use bswap framework in store-merging (PR tree-optimization/78821)

2017-11-19 Thread Jakub Jelinek
On Fri, Nov 17, 2017 at 09:45:35AM +, Thomas Preudhomme wrote: > > Bootstrapped/regtested on {x86_64,i686,powerpc64le,powerpc64}-linux, ok for > > trunk? > > > > The cases this patch can handle are less common than rhs_code INTEGER_CST > > (stores of constants to adjacent memory) or MEM_REF (

Re: [PATCH] Use bswap framework in store-merging (PR tree-optimization/78821)

2017-11-17 Thread Thomas Preudhomme
Hi Jakub, On 16/11/17 17:06, Jakub Jelinek wrote: Hi! This patch uses the bswap pass framework inside of the store merging pass to handle adjacent stores which produce together a 16/32/64 bit store of bswapped value (loaded or from SSA_NAME) or identity (usually only from SSA_NAME, the code pre

[PATCH] Use bswap framework in store-merging (PR tree-optimization/78821)

2017-11-16 Thread Jakub Jelinek
Hi! This patch uses the bswap pass framework inside of the store merging pass to handle adjacent stores which produce together a 16/32/64 bit store of bswapped value (loaded or from SSA_NAME) or identity (usually only from SSA_NAME, the code prefers to use the existing store merging code if coming