<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 with "opt -O2 --attributor-enable=cgscc": Assertion `!UR.InvalidatedSCCs.count(C) && "Processing an invalid SCC!"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=49121">49121</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>opt crashes with "opt -O2 --attributor-enable=cgscc": Assertion `!UR.InvalidatedSCCs.count(C) && "Processing an invalid SCC!"' failed.
</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>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>Interprocedural Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zequanwu@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>reduced.ll:
%"a" = type { i64 }
%"b" = type { i8 }
define hidden i64 @f1() align 2 {
entry:
%ref.tmp = alloca %"a", align 8
%call2 = call i64 @f2(%"a"* %ref.tmp)
ret i64 %call2
}
define internal i64 @f2(%"a"* %this) align 2 {
entry:
%this.addr = alloca %"a"*, align 8
store %"a"* %this, %"a"** %this.addr, align 8
%this1 = load %"a"*, %"a"** %this.addr, align 8
%0 = bitcast %"a"* %this1 to %"b"*
call void @f3(%"b"* %0)
ret i64 undef
}
define internal void @f3(%"b"* %this) align 2 {
entry:
%this.addr = alloca %"b"*, align 8
store %"b"* %this, %"b"** %this.addr, align 8
%this1 = load %"b"*, %"b"** %this.addr, align 8
%call = call i1 @f4(%"b"* %this1)
ret void
}
define internal i1 @f4(%"b"* %this) align 2 {
entry:
%this.addr = alloca %"b"*, align 8
store %"b"* %this, %"b"** %this.addr, align 8
%this1 = load %"b"*, %"b"** %this.addr, align 8
%call = call %"a"* @f5(%"b"* %this1)
ret i1 undef
}
define internal %"a"* @f5(%"b"* %this) align 2 {
entry:
%this.addr = alloca %"b"*, align 8
store %"b"* %this, %"b"** %this.addr, align 8
%this1 = load %"b"*, %"b"** %this.addr, align 8
%0 = bitcast %"b"* %this1 to %"a"*
ret %"a"* %0
}
Command:
opt -O2 --attributor-enable=cgscc -S reduced.ll
Not sure if it's a CGSCC bug or Attributor bug.</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>