<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 - linking results in crash in remangleIntrinsicFunction"
href="https://bugs.llvm.org/show_bug.cgi?id=50923">50923</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>linking results in crash in remangleIntrinsicFunction
</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>Windows NT
</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>Bitcode Reader
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jeroen.dobbelaere@synopsys.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>The problem was triggered in a thinlto build of llvm with the full restrict
patches.
The description here shows the same problem with llvm.ssa.copy:
remangle1.ll: contains a struct type:
%fum
remangle2.ll contains two versions of that type: (maybe because of template
instantiation ?)
%fum
%fum.1
and three declarations using those structs:
declare void @foo(%fum*)
declare %fum.1** @"llvm.ssa.copy.p0p0s_fum.1s"(%fum.1**)
declare %fum** @"llvm.ssa.copy.p0p0s_fums"(%fum**)
File 1 and 2 also contain some other clashing type %aab. Because of that, when
file2 is read,
%fum is mapped onto %fum.1 (the unique id happens to be '1'
!!!)
But, somewhat later, %fum.1 also clashes and is now mapped onto:
%fum.1.2
So, the original declarations become:
declare %fum.1.2** @"llvm.ssa.copy.p0p0s_fum.1s"(%fum.1.2**)
declare %fum.1** @"llvm.ssa.copy.p0p0s_fums"(%fum.1**)
After remangling, these will become:
declare %fum.1.2** @"llvm.ssa.copy.p0p0s_fum.1.2s"(%fum.1.2**)
declare %fum.1** @"llvm.ssa.copy.p0p0s_fum.1s"(%fum.1**)
But, as the bitcodereader keeps all declarations alive, there now is a
conflicting type for '@"llvm.ssa.copy.p0p0s_fum.1s"'
which triggers the crash.</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>