search for: dst_idx

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

Did you mean: dst_idx2
2020 Apr 26
2
assembly code for array iteration generated by llvm is much slower than gcc
...x. My question is that if there's an option of llvm, to let it iterate array by pointer. Or it’s a bug of llvm not resolved now ? Test C code: Int func(int w1, int w2, int *b, int *c) { Int wstart = 0; Int i = 0; Int j = 0; Int sum = 0; In wend = 0; Int dst_idx = 0; Int dst_idx2 = 0; for (I = 0; I < w2; i++) { wstart = i * w1; wend = i / w1; sum = c[wstart]; for (j = wstart + 1; j < wend; j++) { sum += c[j * w2]; sum += c[j * w1]; } dst_idx = w1 * i +...