Re: [PATCH] Fix PR63761: stmt set to wrong basic block

2014-11-12 Thread Richard Biener
On Tue, Nov 11, 2014 at 5:58 PM, Thomas Preud'homme wrote: > Hi, > > The bswap pass iterate over the statements in a basic block and replace them > by a bswap, load or load+bswap when equivalent. However, to keep the code > equivalent the load need to be perform at the same place as where one of

[PATCH] Fix PR63761: stmt set to wrong basic block

2014-11-11 Thread Thomas Preud'homme
Hi, The bswap pass iterate over the statements in a basic block and replace them by a bswap, load or load+bswap when equivalent. However, to keep the code equivalent the load need to be perform at the same place as where one of the original load was made so that they have the same VUSE. Conside