<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 - Clients of SelectionDAG::ReplaceAllUsesWith drop debug info, & are inconsistent"
href="https://bugs.llvm.org/show_bug.cgi?id=35338">35338</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clients of SelectionDAG::ReplaceAllUsesWith drop debug info, & are inconsistent
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vsk@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>There are a few issues here:
- CombineTo() calls ReplaceAllUsesWith(), which calls transferDbgValues(). If
we assert that debug line/value information is preserved after the RAUW in
CombineTo(), a bunch of tests fail.
- Clients of transferDbgValues() pass it SDValues which are attached to SDNodes
with invalidated debug info. It seems unfortunate that we'd even try to
propagate invalid debug info.
- One overload of ReplaceAllUsesWith(From, To) requires From != To, but another
doesn't. This is partly annoying, but may also be masking correctness issues.</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>