<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 - [NewGVN] crash/assert - Seem to have processed the same Value a lot"
href="https://bugs.llvm.org/show_bug.cgi?id=37121">37121</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[NewGVN] crash/assert - Seem to have processed the same Value a lot
</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>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>spatel+llvm@rotateright.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>This is a small modification (swap 'fadd' with 'xor') of the existing test for
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Crash in NewGVN if run after LICM"
href="show_bug.cgi?id=32607">bug 32607</a> (regression test at test/Transforms/NewGVN/pr32607.ll - which I
wrongly modified trying to preserve the behavior, but avoiding FP undef).
It's the same assert message as the earlier bug, so maybe it's slipping through
a crack in the fix for that bug?
define hidden void @foo() {
top:
%.promoted = load i8, i8* undef, align 8
br label %if
;; This is really a multi-valued phi, because the phi is defined by an
expression of the phi.
;; This means that we can't propagate the value over the backedge, because
we'll just cycle
;; through every value.
if: ; preds = %if, %top
%0 = phi i8 [ %1, %if ], [ %.promoted, %top ]
%1 = xor i8 %0, undef
br i1 false, label %L50, label %if
L50: ; preds = %if
%.lcssa = phi i8 [ %1, %if ]
store i8 %.lcssa, i8* undef, align 8
ret void
}
-----------------------------------------------------------------------------
$ ./opt -newgvn xor-with-undef.ll -S
Assertion failed: (ProcessedCount[V] < 100 && "Seem to have processed the same
Value a lot"), function updateProcessedCount, file
llvm/lib/Transforms/Scalar/NewGVN.cpp, line 3000.</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>