- Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Labels
good first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contributehelp wantedIndicates that a maintainer wants help. Not [good first issue].Indicates that a maintainer wants help. Not [good first issue].optimization-remarks
Description
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
Metadata
Metadata
Assignees
Labels
good first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contributehelp wantedIndicates that a maintainer wants help. Not [good first issue].Indicates that a maintainer wants help. Not [good first issue].optimization-remarks