<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 - ARC doesn't elide retain/release pair"
href="https://bugs.llvm.org/show_bug.cgi?id=37333">37333</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ARC doesn't elide retain/release pair
</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>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>smeenai@fb.com
</td>
</tr>
<tr>
<th>CC</th>
<td>ahatanak@gmail.com, compnerd@compnerd.org, llvm-bugs@lists.llvm.org, rjmccall@apple.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20261" name="attach_20261" title="Reduced IR">attachment 20261</a> <a href="attachment.cgi?id=20261&action=edit" title="Reduced IR">[details]</a></span>
Reduced IR
If I run opt -objc-arc on the attached IR, it's able to eliminate the
retain/release pair for %p but not the one for %q. I don't really understand
why one is eliminated but not the other; they both seem elidable as far as I
can see. Changing the order of the releases doesn't have any effect, but
changing the order of the retains (i.e. retaining %q before %p) makes %p be the
RR pair that's eliminated instead of %q.</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>