[GOOGLE] Fix a bug when profile propagation handles infinite loop.

2013-10-25 Thread Dehao Chen
If the propagation finds an infinite look, if the in-edge count is non-zero, then it will cause compiler go into infinite loop when building with AutoFDO. Bootstrapped and regression test on-going. OK for google-4_8 branch? Thanks, Dehao Index: gcc/auto-profile.c

Re: [GOOGLE] Fix a bug when profile propagation handles infinite loop.

2013-10-25 Thread Xinliang David Li
What is the usual number of iterations? David On Fri, Oct 25, 2013 at 4:10 PM, Dehao Chen de...@google.com wrote: If the propagation finds an infinite look, if the in-edge count is non-zero, then it will cause compiler go into infinite loop when building with AutoFDO. Bootstrapped and

Re: [GOOGLE] Fix a bug when profile propagation handles infinite loop.

2013-10-25 Thread Dehao Chen
Most are within 10. The largest one I see is 17 across all benchmark. Dehao On Fri, Oct 25, 2013 at 4:21 PM, Xinliang David Li davi...@google.com wrote: What is the usual number of iterations? David On Fri, Oct 25, 2013 at 4:10 PM, Dehao Chen de...@google.com wrote: If the propagation

Re: [GOOGLE] Fix a bug when profile propagation handles infinite loop.

2013-10-25 Thread Xinliang David Li
Ok with the change. David On Fri, Oct 25, 2013 at 6:17 PM, Dehao Chen de...@google.com wrote: Most are within 10. The largest one I see is 17 across all benchmark. Dehao On Fri, Oct 25, 2013 at 4:21 PM, Xinliang David Li davi...@google.com wrote: What is the usual number of iterations?