<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 -disable-basicaa -loop-versioning causes "PHINode should have one entry for each predecessor of its parent basic block!""
href="https://bugs.llvm.org/show_bug.cgi?id=44209">44209</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>opt -disable-basicaa -loop-versioning causes "PHINode should have one entry for each predecessor of its parent basic block!"
</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>Transformation Utilities
</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=22886" name="attach_22886" title="bbi-36190.ll reproducer">attachment 22886</a> <a href="attachment.cgi?id=22886&action=edit" title="bbi-36190.ll reproducer">[details]</a></span>
bbi-36190.ll reproducer
llvm version: 039664db8
Reproduce with:
opt -disable-basicaa -loop-versioning bbi-36190.ll -S -o -
which gives
PHINode should have one entry for each predecessor of its parent basic block!
%d.1.lcssa.lver.orig = phi i16 [ undef, %for.body.lver.orig ], [ undef,
%for.end ]
in function f
LLVM ERROR: Broken function found, compilation aborted!
The input contains three blocks that are not reachable from entry:
for.body3: ; preds = %for.end
br label %for.cond4
for.cond4: ; preds = %for.cond4,
%for.body3
br i1 undef, label %for.cond4, label %for.end
for.end: ; preds = %for.cond4
br i1 undef, label %for.body3, label %for.inc
Wouldn't be surprised if that is what is causing confusion.</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>