<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 during scev expansion"
href="https://llvm.org/bugs/show_bug.cgi?id=30213">30213</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion during scev expansion
</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>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>Global Analyses
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>wmi@google.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>Original report:
<a href="http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160829/385846.html">http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160829/385846.html</a>
The assertion is caused by rL278161. Copy the bug report here so I have a bug
entry for reference.
$ cat bugpoint-reduced-simplified.ll
target datalayout = "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128"
target triple = "i386-apple-macosx10.12.0"
; Function Attrs: nounwind optsize ssp
define void @Foo() {
entry:
switch i2 undef, label %sw.epilog102 [
i2 -2, label %sw.bb28
]
sw.bb28: ; preds = %entry
%0 = load i8*, i8** undef, align 2
%add.ptr1.i = getelementptr inbounds i8, i8* undef, i32 -1
%add.ptr4.i = getelementptr inbounds i8, i8* %0, i32 -1
%cmp.i = icmp ult i8* undef, %0
%add.ptr4.add.ptr1.i = select i1 %cmp.i, i8* %add.ptr4.i, i8* %add.ptr1.i
br label %while.cond.i
while.cond.i: ; preds = %while.cond.i,
%sw.bb28
%currPtr.1.i = phi i8* [ %incdec.ptr.i, %while.cond.i ], [
%add.ptr4.add.ptr1.i, %sw.bb28 ]
%incdec.ptr.i = getelementptr inbounds i8, i8* %currPtr.1.i, i32 1
%1 = load i8, i8* %incdec.ptr.i, align 1
br label %while.cond.i
sw.epilog102: ; preds = %entry
unreachable
}
$ bugpoint-reduced-simplified.ll -loop-reduce -disable-output
Assertion failed: (S1->getType() == S2->getType() && "Cannot create binary
operator with two operands of differing type!"), function Create, file
/Users/steven/dev/trunk/llvm/lib/IR/Instructions.cpp, line 2137.</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>