search for: kernel_covari

Displaying 1 result from an estimated 1 matches for "kernel_covari".

2018 Jul 07
2
LoopVectorize fails to vectorize more complex loops
Hello. Could you please tell me why the first loop of the following program (also maybe the commented loop) doesn't get vectorized with LoopVectorize (from a recent LLVM build from the SVN repository from Jun 2018)? typedef short TYPE; TYPE data[1400][1200]; void kernel_covariance(int m, int n, TYPE mean[1200]) { int i, j, k; for (j = 0; j < m; j++) { mean[j] = 0.0; for (i = 0; i < n; i++) mean[j] += data[j][i]; //mean[j] /= float_n; } // This loop gets vectorized for (i = 0; i < n; i++) for (j = 0; j &l...