| Issue |
64637
|
| Summary |
[remark] the pass-analysis result inconsistent with the input source
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
vfdff
|
* test: https://gcc.godbolt.org/z/YrKnWcG3h
```
void foo (int *restrict y, int *restrict x, int *restrict indices, int n) {
for (int k = 0; k < 10; k++) {
#pragma loop distribute(enable)
for (int i = 0; i < n; i++) {
y[i + k * M] = y[i + k* M] + 1;
y[i + k * (M+1)] = indices[i] + 2;
}
}
}
```
* As you see, I already add **#pragma loop distribute(enable)** in the input source, but the **-Rpass-analysis** still report that
**\<source>:8:24: remark: loop not vectorized: unsafe dependent memory operations in loop. Use #pragma loop distribute(enable) to allow loop distribution to attempt to isolate the offending operations into a separate loop**
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs