<html>
<head>
<base href="http://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 --- - needless avx spill/reload"
href="http://llvm.org/bugs/show_bug.cgi?id=18846">18846</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>needless avx spill/reload
</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>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>Register Allocator
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tobias@grosser.es
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=12063" name="attach_12063" title="The LLVM-IR file to reproduce this bug">attachment 12063</a> <a href="attachment.cgi?id=12063&action=edit" title="The LLVM-IR file to reproduce this bug">[details]</a></span>
The LLVM-IR file to reproduce this bug
When running 'llc spill-reload.ll' the generated AVX assembly contains
the following code eight times (once for each spill):
vmovups 704(%rsp), %ymm8 # 32-byte Folded Reload
vmovups %ymm8, 704(%rsp) # 32-byte Folded Spill
This is similar to PR10070, which was already fixed. Spilling the value
beforehand
and reloading it at this very position is a good decission. Even spilling the
same
value again is the right choice. However, I do not see why we need to have an
explicit copy back to the stack. We just loaded the value from the stack, so we
know that the very same value is already on the stack. I would expect LLVM to
not emmit the 'vmovups %ymm8, 704(%rsp) # 32-byte Folded Spill'
instruction.</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>