Re: [PATCH, PR 49516] Avoid SRA mem-refing its scalar replacements

2011-06-24 Thread Richard Guenther
On Thu, Jun 23, 2011 at 9:53 PM, Martin Jambor wrote: > Hi, > > When SRA tries to modify an assignment where on one side it should put > a new scalar replacement but the other is actually an aggregate with > a number of replacements for it, it will generate MEM-REFs into the > former replacement w

[PATCH, PR 49516] Avoid SRA mem-refing its scalar replacements

2011-06-23 Thread Martin Jambor
Hi, When SRA tries to modify an assignment where on one side it should put a new scalar replacement but the other is actually an aggregate with a number of replacements for it, it will generate MEM-REFs into the former replacement which can lead to miscompilations. This is avoided by the simple p