Re: [Google] Fix the bug in calculating sum_all

2013-04-11 Thread Xinliang David Li
ok. David On Thu, Apr 11, 2013 at 1:56 PM, Dehao Chen wrote: > Hi, > > This patch fix the bug of sum_all, which is used in loop unroll. The > fix will suppress unrolling loops when the program is hot instruction > footprint is large. > > Bootstrapped and passed regression tests. > > Is it okay f

[Google] Fix the bug in calculating sum_all

2013-04-11 Thread Dehao Chen
Hi, This patch fix the bug of sum_all, which is used in loop unroll. The fix will suppress unrolling loops when the program is hot instruction footprint is large. Bootstrapped and passed regression tests. Is it okay for googe-4_7 branch? Thanks, Dehao --- a/gcc/auto-profile.c +++ b/gcc/auto-pr