Re: [Patch, cfg] Improve jump to return optimization for complex return

2016-06-15 Thread Jiong Wang
Segher Boessenkool writes: > On Tue, Jun 14, 2016 at 03:53:59PM +0100, Jiong Wang wrote: >> "bl to pop" into "pop" which is "jump to return" into "return", so a better >> place to fix this issue is at try_optimize_cfg where we are doing these >> jump/return optimization already: >> >> /* Try

Re: [Patch, cfg] Improve jump to return optimization for complex return

2016-06-14 Thread Segher Boessenkool
On Tue, Jun 14, 2016 at 03:53:59PM +0100, Jiong Wang wrote: > "bl to pop" into "pop" which is "jump to return" into "return", so a better > place to fix this issue is at try_optimize_cfg where we are doing these > jump/return optimization already: > > /* Try to change a branch to a return to ju