<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 - Non-affine loops not code generated corretly"
href="https://bugs.llvm.org/show_bug.cgi?id=33265">33265</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Non-affine loops not code generated corretly
</td>
</tr>
<tr>
<th>Product</th>
<td>Polly
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>Optimizer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>polly-dev@googlegroups.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tobias@grosser.es
</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=18556" name="attach_18556" title="Test case">attachment 18556</a> <a href="attachment.cgi?id=18556&action=edit" title="Test case">[details]</a></span>
Test case
The attached test case breaks as follows:
po /tmp/non-affine-loop-not-working.ll -polly-allow-nonaffine-loops
-polly-process-unprofitable -polly-codegen
Instruction does not dominate all uses!
%indvar = phi i64 [ %indvar.next, %bb9 ], [ 0, %bb2 ]
%p_indvar.next = add i64 %indvar, 1
Instruction does not dominate all uses!
%indvar = phi i64 [ %indvar.next, %bb9 ], [ 0, %bb2 ]
%0 = add i64 %x, %indvar
LLVM ERROR: Broken function found, compilation aborted!
It seems non-affine loops are broken in this case. Unfortunately it seems we
have no code-generation test coverage from the point when they have been
introduced. :(
As they are disabled by default that is not breaking anything in the default
configuration, but we should still fix this and add test cases to not regress
further.</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>