<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64636>64636</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[remark] the pass-analysis result inconsistent with the final assembly output
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vfdff
</td>
</tr>
</table>
<pre>
* test: https://gcc.godbolt.org/z/WfxGE3q9r
```
void foo (int *restrict y, int *restrict x, int *restrict indices, int n) {
for (int k = 0; k < 10; k++)
for (int i = 0; i < n; i++) {
y[i + k * M] = y[i + k* M] + 1;
y[i + k * (M+1)] = indices[i] + 2;
}
}
```
* When I add option **-Rpass-analysis=loop-vectorize**, it reports **<source>:8:22: remark: loop not vectorized**,but in the final output assemble, we get **sve** assemble code as following:
```
.LBB0_2: // =>This Inner Loop Header: Depth=1
ld1w { z0.s }, p0/z, [x2, x9, lsl #2]
add z0.s, z0.s, #2 // =0x2
st1w { z0.s }, p0, [x0, x9, lsl #2]
add x9, x9, x10
whilelo p0.s, x9, x8
b.mi .LBB0_2
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVM2O4zYMfhr6QiSwKdtxDj7Y8aRdYPdSFNhj4R85VlexXEnOzzx9IcWZSRbTKVYwJFoiP34iKdbGiMPIeQ5JCUkV1LMdlM5Pfdf3QaO6aw5UoOXGAitwsHYywAqgPdD-0Lbrg-oaJe1a6QPQ_hVo_72__PbC_tlqCCsIC0jD5fO_JyU67JVCoEyMFoEKzY3VorV4Bdrhz5uXjzbF2ImWm_vRCLRF2JQ3F4i90nf8HwiswhBY6cUdRjcZqPTf9gMb8W4jvM3oxTeTR1duXCEpBQJ5F1TgN0gqD_Fw8L5PJUbAPgUAyr4BlZGjt0Ddb5yU4o5CDyiwqZZwvwnPcV9mKvD7wEf8gnXXoZqsUKNzCVSs_phqY1b1WMurEQZYJZWa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