search for: v_siz

Displaying 2 results from an estimated 2 matches for "v_siz".

Did you mean: v_size
2012 Mar 28
2
[LLVMdev] Suboptimal code due to excessive spilling
...mple) but it does not help. Another observation is that the loop variable i (in foo) must be involved: if one does *p = 5 (instead of p[i] = 5), the problem also goes away. I would appreciate some advice on how to get around this problem. Thank you for any help, Brent double sum( double* v, int v_siz ) { double sum = 0.0; int i = 0; for (; i != v_siz; ++i) sum += v[i]; return sum; } double foo(double *x, int *p, int k) { double s = 0.0; for (int i = 0; i != k;++i) { s += sum(&x[i], 18); p[i] = 5; // xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
2012 Apr 05
0
[LLVMdev] Suboptimal code due to excessive spilling
...mple) but it does not help. Another observation is that the loop variable i (in foo) must be involved: if one does *p = 5 (instead of p[i] = 5), the problem also goes away. I would appreciate some advice on how to get around this problem. Thank you for any help, Brent double sum( double* v, int v_siz ) { double sum = 0.0; int i = 0; for (; i != v_siz; ++i) sum += v[i]; return sum; } double foo(double *x, int *p, int k) { double s = 0.0; for (int i = 0; i != k;++i) { s += sum(&x[i], 18); p[i] = 5; // xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...