<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 - Regression: Segfault in LICM after upgrading to 6.0.0"
href="https://bugs.llvm.org/show_bug.cgi?id=36184">36184</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Regression: Segfault in LICM after upgrading to 6.0.0
</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>Windows NT
</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>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alex@crichton.co
</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=19788" name="attach_19788" title="crashing bytecode">attachment 19788</a> <a href="attachment.cgi?id=19788&action=edit" title="crashing bytecode">[details]</a></span>
crashing bytecode
We've *almost* upgraded to LLVM 6 in rust-lang/rust [1] but we seem to have hit
what is hopefully our last blocker, a segfault when optimizing IR on MSVC. The
attached IR will non-deterministically segfault in `opt` during the LICM
passes. I've reproduced this with:
for i in `seq 1 1000`; do
echo $i
opt -O2 -o /dev/null foo.ll || break
done
Sometimes it takes up to 100 runs to crash, but I've been able to crash on a
debug and a release build of LLVM, both on Linux and on Windows.
[1]: <a href="https://github.com/rust-lang/rust/pull/47828">https://github.com/rust-lang/rust/pull/47828</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>