Skip to content

[remark] the pass-analysis result inconsistent with the input source #64637

@vfdff

Description

@vfdff
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/contributehelp wantedIndicates that a maintainer wants help. Not [good first issue].optimization-remarks

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions