On Wed, Jan 4, 2012 at 1:27 PM, Eric Botcazou <ebotca...@adacore.com> wrote: >> > OK, I see. Then the only way out I can think of is to stop going up the >> > chain of COMPONENT_REFs as soon as the offset becomes negative. >> >> Yeah, that sounds like a better solution. > > Bootstrapped on MIPS/IRIX and regtested on {i586,x86_64}-suse-linux. OK after > a full testing cycle?
Ok. Thanks, Richard. > 2012-01-04 Eric Botcazou <ebotca...@adacore.com> > > PR tree-optimization/51624 > * tree-sra.c (build_ref_for_model): When replicating a chain of > COMPONENT_REFs, stop as soon as the offset would become negative. > > > -- > Eric Botcazou