<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:matti.niemenmaa+llvmbugs@iki.fi" title="Matti Niemenmaa <matti.niemenmaa+llvmbugs@iki.fi>"> <span class="fn">Matti Niemenmaa</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Infer nsw/nuw flags for increment/decrement if relational comparison succeeded"
href="https://llvm.org/bugs/show_bug.cgi?id=30428">bug 30428</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>DUPLICATE
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Infer nsw/nuw flags for increment/decrement if relational comparison succeeded"
href="https://llvm.org/bugs/show_bug.cgi?id=30428#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Infer nsw/nuw flags for increment/decrement if relational comparison succeeded"
href="https://llvm.org/bugs/show_bug.cgi?id=30428">bug 30428</a>
from <span class="vcard"><a class="email" href="mailto:matti.niemenmaa+llvmbugs@iki.fi" title="Matti Niemenmaa <matti.niemenmaa+llvmbugs@iki.fi>"> <span class="fn">Matti Niemenmaa</span></a>
</span></b>
<pre>Turns out this was already dealt with as part of <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [indvars] Redundant loop increment after IV widening"
href="show_bug.cgi?id=28620">Bug 28620</a>, which has a fix in
trunk that currently requires explicit activation due to it causing other
regressions: opt -cvp-dont-process-adds=false -correlated-propagation infers
the nsw/nuw flags nicely.
But only for adds — it doesn't do anything for sub instructions. Currently this
doesn't matter, since that would anyway be undone by the fact that 'sub nuw Y,
1' is canonicalized into 'add Y, -1', but dealing with that seems like a
separate issue so I'm marking this as a duplicate.
*** This bug has been marked as a duplicate of <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [indvars] Redundant loop increment after IV widening"
href="show_bug.cgi?id=28620">bug 28620</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>