Re: [PATCH PR79159]Fix spurious array bound warning.

2017-01-24 Thread Richard Biener
On Tue, Jan 24, 2017 at 11:12 AM, Bin Cheng wrote: > Hi, > Given test as reported in PR79159: > > void foo(float tmpCorr[9][9]); > float bar; > > void finalDigits(int& n) > { > float tmpCorr[9][9] = {{0}}; > > foo(tmpCorr); > for (int i = 0; i < n; i++) { > for (int j = i+1; j < n; j++)

[PATCH PR79159]Fix spurious array bound warning.

2017-01-24 Thread Bin Cheng
Hi, Given test as reported in PR79159: void foo(float tmpCorr[9][9]); float bar; void finalDigits(int& n) { float tmpCorr[9][9] = {{0}}; foo(tmpCorr); for (int i = 0; i < n; i++) { for (int j = i+1; j < n; j++) { bar = tmpCorr[i][j]; } } } Pass cunrolli unrolls the inner lo