<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 --- - segfault in tailcallelim on 32-bit"
href="https://llvm.org/bugs/show_bug.cgi?id=24722">24722</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>segfault in tailcallelim on 32-bit
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>opt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>diggsey@googlemail.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>The following IL will cause `opt bugpoint-reduced-simplified.ll -tailcallelim`
to segfault:
---------
; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i686-pc-windows-gnu"
define fastcc void @drop() {
call fastcc void @drop()
br label %here
here:
ret void
}
---------
Removing the redundant branch instruction will cause it to trigger an assert
instead:
---------
Assertion failed!
Program:
C:\Users\Diggory\Projects\rust3\i686-pc-windows-gnu\llvm\Release+Asserts\bin\opt.exe
File: C:/Users/Diggory/Projects/rust3/src/llvm/include/llvm/Support/Casting.h,
Line 95
Expression: Val && "isa<> used on a null pointer"
Illegal instruction
---------</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>