<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 - peeling stores to after branch"
href="https://bugs.llvm.org/show_bug.cgi?id=46581">46581</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>peeling stores to after branch
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>enhancement
</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>slandden@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I am sorry this test case is not reduced, but I am getting assembly that
repetedly writes to the same pointer without reading it, because it doesn't
want to have to pass a register that it is using to a branch (it would have to
alternate registers, and then have a label right before it to rename the other
register, as one possible solution).
cmp w10, #116 // =116
b.ne .LBB1_952
add x10, x9, #3 // =3
str x10, [x27] <=====
ldrb w10, [x9, #3]
cmp w10, #117 // =117
b.ne .LBB1_952
add x10, x9, #4 // =4
str x10, [x27] <=====
ldrb w10, [x9, #4]
cmp w10, #114 // =114
b.ne .LBB1_952
add x10, x9, #5 // =5
str x10, [x27] <=====
ldrb w10, [x9, #5]
cmp w10, #110 // =110
b.ne .LBB1_952
add x10, x9, #6 // =6
str x10, [x27] <=====
ldrb w9, [x9, #6]
.LBB1_951: // in Loop: Header=BB1_1 Depth=1
ldr x9, [x27]
ldrb w10, [x9]
<a href="https://godbolt.org/z/o3_5FV">https://godbolt.org/z/o3_5FV</a></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>