<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 --- - failure to optimize side-effect free assembly"
href="https://llvm.org/bugs/show_bug.cgi?id=27610">27610</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>failure to optimize side-effect free assembly
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>3.8
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>superjoe30@gmail.com
</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>; ModuleID = 'test.ll'
; Question: why doesn't the following remove the body of derp?
; opt -O3 test.ll -print-module
@argv = internal unnamed_addr global i8** undef
; Function Attrs: nounwind
define void @derp() #0 {
entry:
%0 = tail call i8** asm "lea 0x8(%rsp), $0", "=r"() #0
store i8** %0, i8*** @argv, align 8
ret void
}
attributes #0 = { nounwind }
Here, @argv is internal and never read. Therefore, the inline assembly and
entire body of the function should be optimized away.
Note that the inline assembly is *not* marked `sideeffect`.</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>