<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 crashes when running BDCE: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed"
href="https://bugs.llvm.org/show_bug.cgi?id=34211">34211</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>opt crashes when running BDCE: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' 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>All
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>david.stenberg@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=18995" name="attach_18995" title="Reduced reproducer.">attachment 18995</a> <a href="attachment.cgi?id=18995&action=edit" title="Reduced reproducer.">[details]</a></span>
Reduced reproducer.
When running the following command line using opt from top-of-trunk:
$ opt -bdce bugpoint-reduced-simplified.ll -o /dev/null
opt crashes due to the following assertion:
opt: ../include/llvm/IR/DataLayout.h:533: uint64_t
llvm::DataLayout::getTypeSizeInBits(llvm::Type *) const: Assertion
`Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.
Backtrace:
#3 0x0000000000a05d99 in llvm::DataLayout::getTypeSizeInBits
(this=0x3dec3d8, Ty=0x3db2970)
at ../include/llvm/IR/DataLayout.h:533
#4 0x0000000000ebd754 in llvm::DemandedBits::getDemandedBits
(this=0x3de3190, I=0x3deeea8)
at ../lib/Analysis/DemandedBits.cpp:375
#5 0x0000000001c93200 in clearAssumptionsOfUsers (I=0x3deecd8, DB=...)
at ../lib/Transforms/Scalar/BDCE.cpp:51</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>