Re: PATCH, PR 50605] Handle MEM_REFs in is_gimple_ip_invariant_address

2011-11-16 Thread Richard Guenther
On Fri, Nov 11, 2011 at 4:21 PM, Martin Jambor wrote: > Hi, > > the problem in PR 50605 is that is_gimple_ip_invariant returns false > for > >  &MEM[(struct tRecorderImp *)&recorder + 8B] > > where &reorder is an IP gimple invariant.  This patch fixes that by > copying the code that handles MEM_RE

PATCH, PR 50605] Handle MEM_REFs in is_gimple_ip_invariant_address

2011-11-11 Thread Martin Jambor
Hi, the problem in PR 50605 is that is_gimple_ip_invariant returns false for &MEM[(struct tRecorderImp *)&recorder + 8B] where &reorder is an IP gimple invariant. This patch fixes that by copying the code that handles MEM_REFs from is_gimple_invariant_address (and only changing decl_address_i