Re: [PATCH] cfgcleanup: Handle a branch with just a return in both arms (PR71028)

2016-05-10 Thread Bernd Schmidt
On 05/10/2016 09:55 AM, Segher Boessenkool wrote: PR rtl-optimization/71028 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional jump with just a return in the fallthrough block if the branch block contains just a returns as well. Looks good. Bernd

[PATCH] cfgcleanup: Handle a branch with just a return in both arms (PR71028)

2016-05-10 Thread Segher Boessenkool
If we have a conditional jump that has only a return in both the branch path and the fallthrough path, and the return on the branch path can not be made a conditional return, we will try to make a conditional return from the fallthrough path, and that does not work because we then try to redirect