Re: [PATCH] Fix PR64436: broken logic to process bitwise ORs in bswap pass

2015-01-13 Thread Richard Biener
On Mon, 12 Jan 2015, Thomas Preud'homme wrote: > Hi all, > > To identify if a set of loads, shift, cast, mask (bitwise and) and bitwise OR > is equivalent to a load or byteswap, the bswap pass assign a number to each > byte loaded according to its significance (1 for lsb, 2 for next least > si

[PATCH] Fix PR64436: broken logic to process bitwise ORs in bswap pass

2015-01-12 Thread Thomas Preud'homme
Hi all, To identify if a set of loads, shift, cast, mask (bitwise and) and bitwise OR is equivalent to a load or byteswap, the bswap pass assign a number to each byte loaded according to its significance (1 for lsb, 2 for next least significant byte, etc.) and form a symbolic number such as 0x0