<html>
<head>
<base href="http://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 --- - mem2reg hits assert with short function"
href="http://llvm.org/bugs/show_bug.cgi?id=16794">16794</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>mem2reg hits assert with short function
</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>All
</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>matt@pharr.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10985" name="attach_10985" title="test case">attachment 10985</a> <a href="attachment.cgi?id=10985&action=edit" title="test case">[details]</a></span>
test case
With top of tree, if I run "opt -mem2reg bugpoint-reduced-simplified.ll" with
the attached, I get a crash:
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file /Users/mpharr/llvm-dev-src/include/llvm/Support/Casting.h,
line 239.
[...]
0. Program arguments: opt -mem2reg bugpoint-reduced-simplified.ll
1. Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2. Running pass 'Promote Memory to Register' on function '@f_f'
[1] 74604 illegal hardware instruction opt -mem2reg
bugpoint-reduced-simplified.ll
According to git bisect, this was introduced in Bill W's r187618.</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>