| 1 |
|
|
void TestH(int *res, int *c, int *d, int *p, int n) { |
| 2 |
|
|
|
| 3 |
|
|
|
| 4 |
|
|
#pragma clang loop vectorize(assume_safety) |
| 5 |
|
|
for (i = 0; i < 1600; i++) { |
| 6 |
|
|
res[i] = (p[i] == 0) ? res[i] : res[i] + d[i]; |
| 7 |
|
|
|
| 8 |
|
|
|
| 9 |
|
|
for (i = 0; i < 16; i++) { |
| 10 |
|
|
res[i] = (p[i] == 0) ? res[i] : res[i] + d[i]; |
| 11 |
|
|
|
| 12 |
|
|
|
| 13 |
|
|
|
|
|
inline |
foo can be inlined into TestH with cost=30 (threshold=412) |
TestH |
|
|
inline |
foo inlined into TestH |
TestH |
| 14 |
|
|
|
| 15 |
|
|
|
|
|
inline |
bar will not be inlined into TestH because its definition is unavailable |
TestH |
|
|
inline |
foo can be inlined into TestH with cost=30 (threshold=412) |
TestH |
|
|
inline |
foo inlined into TestH |
TestH |
|
|
inline |
foo can be inlined into TestH with cost=30 (threshold=412) |
TestH |
|
|
inline |
foo inlined into TestH |
TestH |
| 16 |
|
|
|
| 17 |
|
|
|