<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - opt -loop-vectorize fails with llvm::LoopVectorizationCostModel::runtimeChecksRequired(): Assertion `Legal->getLAI()->getSymbolicStrides().empty() && "Specializing for stride == 1 under -Os/-Oz"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=46652">46652</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>opt -loop-vectorize fails with llvm::LoopVectorizationCostModel::runtimeChecksRequired(): Assertion `Legal->getLAI()->getSymbolicStrides().empty() && "Specializing for stride == 1 under -Os/-Oz"' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Loop Optimizer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mikael.holmen@ericsson.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23708" name="attach_23708" title="bbi-45006.ll reproducer">attachment 23708</a> <a href="attachment.cgi?id=23708&action=edit" title="bbi-45006.ll reproducer">[details]</a></span>
bbi-45006.ll reproducer
Reproduce with:
opt -o /dev/null -loop-vectorize bbi-45006.ll
Result:
opt: ../lib/Transforms/Vectorize/LoopVectorize.cpp:4941: bool
llvm::LoopVectorizationCostModel::runtimeChecksRequired(): Assertion
`Legal->getLAI()->getSymbolicStrides().empty() && "Specializing for stride == 1
under -Os/-Oz"' failed.
Starts failing with 7bf299c8d8d5:
[LV] Vectorize without versioning-for-unit-stride under -Os/-Oz
If a loop is in a function marked OptSize, Loop Access Analysis should
refrain
from generating runtime checks for unit strides that will version the loop.
If a loop is in a function marked OptSize and its vectorization is enabled,
it
should be vectorized w/o any versioning.
Fixes PR46228.
Differential Revision: <a href="https://reviews.llvm.org/D81345">https://reviews.llvm.org/D81345</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>