Re: [PATCH] Handle side-effects of EH optimizations of callees

2011-10-05 Thread Jan Hubicka
> On Tue, Oct 4, 2011 at 9:02 PM, Maxim Kuvyrkov wrote: > > On 5/10/2011, at 1:49 AM, Richard Guenther wrote: > > > >> On Tue, Oct 4, 2011 at 9:17 AM, Maxim Kuvyrkov > >> wrote: > >>> Richard, > >>> > >>> The following patch fixes a CFG consistency problem. > >>> > >>> When early IPA optimizatio

Re: [PATCH] Handle side-effects of EH optimizations of callees

2011-10-05 Thread Richard Guenther
On Tue, Oct 4, 2011 at 9:02 PM, Maxim Kuvyrkov wrote: > On 5/10/2011, at 1:49 AM, Richard Guenther wrote: > >> On Tue, Oct 4, 2011 at 9:17 AM, Maxim Kuvyrkov >> wrote: >>> Richard, >>> >>> The following patch fixes a CFG consistency problem. >>> >>> When early IPA optimizations (e.g., early SRA)

Re: [PATCH] Handle side-effects of EH optimizations of callees

2011-10-04 Thread Maxim Kuvyrkov
On 5/10/2011, at 1:49 AM, Richard Guenther wrote: > On Tue, Oct 4, 2011 at 9:17 AM, Maxim Kuvyrkov wrote: >> Richard, >> >> The following patch fixes a CFG consistency problem. >> >> When early IPA optimizations (e.g., early SRA) create a version of a >> function that no longer throws, version

Re: [PATCH] Handle side-effects of EH optimizations of callees

2011-10-04 Thread Richard Guenther
On Tue, Oct 4, 2011 at 9:17 AM, Maxim Kuvyrkov wrote: > Richard, > > The following patch fixes a CFG consistency problem. > > When early IPA optimizations (e.g., early SRA) create a version of a function > that no longer throws, versioning machinery deletes EH landings pads in > _callers_ of the

[PATCH] Handle side-effects of EH optimizations of callees

2011-10-04 Thread Maxim Kuvyrkov
Richard, The following patch fixes a CFG consistency problem. When early IPA optimizations (e.g., early SRA) create a version of a function that no longer throws, versioning machinery deletes EH landings pads in _callers_ of the function [*]. However, the EH cfg edges are not updated in the c