<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Assertion `InLCSSA && "LCSSA is broken after loop-simplify."' failed."
href="https://llvm.org/bugs/show_bug.cgi?id=30454">30454</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `InLCSSA && "LCSSA is broken after loop-simplify."' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</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>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=17315" name="attach_17315" title="Reproducer">attachment 17315</a> <a href="attachment.cgi?id=17315&action=edit" title="Reproducer">[details]</a></span>
Reproducer
The original C-code was generated by csmith, and then it's been reduced
heavily.
opt -S -lcssa -licm red.ll
hits:
opt: ../lib/Transforms/Utils/LoopSimplify.cpp:825: virtual bool (anonymous
namespace)::LoopSimplify::runOnFunction(llvm::Function &): Assertion `InLCSSA
&& "LCSSA is broken after loop-simplify."' failed.
Note the block
if.end1070: ; No predecessors!
br i1 undef, label %for.end1146, label %if.end1074
Noone jumps to it, and if I remove it, the program compiles instead of hitting
the assert.</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>