<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59239>59239</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[RISC-V, RVV, Vector, Intrinsics, LLVM16] Turn off auto-vectorization
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mp-17
</td>
</tr>
</table>
<pre>
Hello everyone. I have just started using LLVM 16, and I noticed that the auto-vectorization is on by default.
How can I turn it off completely, to be sure that the scalar part of the compiled program will not be vectorized?
I tried with:
`clang -march=rv64gcv_zfh_zvfh0p1 -menable-experimental-extensions -mllvm -scalable-vectorization=off ...`
But I still find vector code where it shouldn't be.
Thanks a lot,
Matteo
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxlUUtvnDAQ_jVwGYF4LbscOOShKJGSSxrtNRpgAKdejOyB7ebXd8ymSqtKyHg8j-8xjeku9SNpbYBWshczUQxPMOJK8LE4BsdomTpYnJoGeH4-vkBaBtkd4NRJ4WRYtZLmEVkOAlzYRCu1bKz6RFZmAuVAzuYCHfW4aI6D5D5Ibh7NGVqcZAgvVqoYTN9Da06zJiZ98SBsoCFwi6VvBNeiRguz8JKO7ck3KS00ZmsGiyc4K609N9_9hwx1Qf5whb6eAmyVNJ0Vj0F-A1-5Mmk1itbohLaVxL1dy2Jo1_fPfnz_XPsxmVNJ0oSNpoh-zWSVRIxaAqbJiWYnBVqvJ4g2tr7wH09kqhcbx7HAXXFvFxYrHHvmvRJzrw2irSM4jyQWiEVuNIvupiDbe23x33LeRpx-OkDQhsW76-MLMpMJqU7LsirLIs33YVfnXZVXGLJiTXWwu319-nEXHb3hr8ftd9yw_e1pEpNEU-t85Pcv69_dw5vfmdfw_8LDxep6ZJ6duBpkD_INYvHSxLInCbwxX79IFvYhvRIq5xYSkIddleVVONZdg9WeZBuHhtp9su9TKtJDQWWeYIFpGYqvpJ3nH2TZRGfYRshd-IWqzpIsS9PskFb5Li_iXd_3bXvok6KrEMsmKBI6odKx5xEbO4S23ig1y-AkqZVj951E59Qw0WaXny-yR2Pr0xyl-3ADrjfivwGbWRcA">