<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 - ModuleSummaryAnalysis does not preserve alias-to-alias information"
href="https://bugs.llvm.org/show_bug.cgi?id=37884">37884</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ModuleSummaryAnalysis does not preserve alias-to-alias information
</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 Analyses
</td>
</tr>
<tr>
<th>Assignee</th>
<td>vlad@tsyrklevich.net
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vlad@tsyrklevich.net
</td>
</tr>
<tr>
<th>CC</th>
<td>eugeni.stepanov@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>The following IR:
@Alias = dso_preemptable alias void(), void()* @foo
@AliasToAlias = dso_local alias void(), void()* @Alias
define dso_local void @foo() { ret void }
will generate the following (textual) ThinLTO summary:
^1 = gv: (name: "foo", summaries: (function: (module: ^0, flags: (linkage:
external, notEligibleToImport: 0, live: 0, dsoLocal: 1), insts: 1))) ; guid =
6699318081062747564
^2 = gv: (name: "AliasToAlias", summaries: (alias: (module: ^0, flags:
(linkage: external, notEligibleToImport: 0, live: 0, dsoLocal: 1), aliasee:
^1))) ; guid = 15479319319369236563
^3 = gv: (name: "Alias", summaries: (alias: (module: ^0, flags: (linkage:
external, notEligibleToImport: 0, live: 0, dsoLocal: 0), aliasee: ^1))) ; guid
= 16088086490780401135
In the summary data, the aliasee for @AliasToAlias is @foo, not @Alias. This is
a problem because as I'm performing an interprocedural analysis I need to
ensure that every call is dso_local to perform a sound analysis. The summary
data above hides that @Alias is dso_preemptable.</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>