search for: wstart

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

Did you mean: start
2020 Apr 26
2
assembly code for array iteration generated by llvm is much slower than gcc
...generate more codes to calculate the memory address of an array element from the index. 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++) {...