Re: Strip NOP_EXPR before building MEM

2016-08-30 Thread Richard Biener
On Sun, Aug 28, 2016 at 7:59 PM, Jan Hubicka wrote: > Hi, > I have noticed that ivopts build MEM_REF (NOP_EXPR (address)) > where NOP_EXPR converts one pointer type to another. Later it tries > to expand it that on strict alignment targets punt on determining > the alignment and winds expensive m

Strip NOP_EXPR before building MEM

2016-08-28 Thread Jan Hubicka
Hi, I have noticed that ivopts build MEM_REF (NOP_EXPR (address)) where NOP_EXPR converts one pointer type to another. Later it tries to expand it that on strict alignment targets punt on determining the alignment and winds expensive memory reference. It seems to make no sense to have NOP_EXPR he