<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - SCCP elides too much in simple example"
href="https://llvm.org/bugs/show_bug.cgi?id=29120">29120</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>SCCP elides too much in simple example
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>3.9
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>Interprocedural Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>renato.golin@linaro.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>RE: <a href="http://lists.llvm.org/pipermail/llvm-dev/2016-August/104018.html">http://lists.llvm.org/pipermail/llvm-dev/2016-August/104018.html</a>
The following code gets the global function elided when it shouldn't:
%empty = type {}
declare %empty @foo()
define i32 @main() {
%1 = call %empty @foo()
ret i32 0
}
$ opt -sccp -S file.ll -o -
%empty = type {}
declare %empty @foo()
define i32 @main() {
ret i32 0
}
Sanjoy Das detected a possible fix in SCCP.cpp:
<a href="http://lists.llvm.org/pipermail/llvm-dev/2016-August/104022.html">http://lists.llvm.org/pipermail/llvm-dev/2016-August/104022.html</a>
It seems to work well on the example, but generates a bunch of segfaults on the
tests. I'll let Sanjoy or someone more familiar with SCCP to fix this one.
We'll also need to back-port it to 3.9.0.
cheers,
--renato</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>