Re: [PATCH] tree-optimization/107087 - missed CCP after forwprop

2023-03-28 Thread Jakub Jelinek via Gcc-patches
On Tue, Mar 28, 2023 at 12:43:34PM +, Richard Biener wrote: > When forwprop simplifies the CFG the 2nd order opportunities by > exposed degenerate PHIs are not realized. The following improves > this by properly tracking executable edges and thus handling this > for non-cyclic CFGs at least. >

[PATCH] tree-optimization/107087 - missed CCP after forwprop

2023-03-28 Thread Richard Biener via Gcc-patches
When forwprop simplifies the CFG the 2nd order opportunities by exposed degenerate PHIs are not realized. The following improves this by properly tracking executable edges and thus handling this for non-cyclic CFGs at least. This avoids the bogus diagnostic reported for the testcase in this PR.