<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 -enable-loop-distribute -loop-distribute crashes with Assertion `Partition != -2 && "Pointer not belonging to any partition"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=50288">50288</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>opt -enable-loop-distribute -loop-distribute crashes with Assertion `Partition != -2 && "Pointer not belonging to any partition"' 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=24846" name="attach_24846" title="bbi-55997.ll reproducer">attachment 24846</a> <a href="attachment.cgi?id=24846&action=edit" title="bbi-55997.ll reproducer">[details]</a></span>
bbi-55997.ll reproducer
Reproduce with:
opt -enable-new-pm=0 -enable-loop-distribute -loop-distribute -o /dev/null
bbi-55997.ll
Result
opt: ../lib/Transforms/Scalar/LoopDistribute.cpp:531: SmallVector<int, 8>
(anonymous
namespace)::InstPartitionContainer::computePartitionSetForPointers(const
llvm::LoopAccessInfo &): Assertion `Partition != -2 && "Pointer not belonging
to any partition"' failed.
This starts happening with 1ed7f8ede564
[LAA] Support pointer phis in loop by analyzing each incoming pointer.
SCEV does not look through non-header PHIs inside the loop. Such phis
can be analyzed by adding separate accesses for each incoming pointer
value.
This results in 2 more loops vectorized in SPEC2000/186.crafty and
avoids regressions when sinking instructions before vectorizing.
Reviewed By: Meinersbur
Differential Revision: <a href="https://reviews.llvm.org/D101286">https://reviews.llvm.org/D101286</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>