<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:john.brawn.123@gmail.com" title="John Brawn <john.brawn.123@gmail.com>"> <span class="fn">John Brawn</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - LLVM doesn't optimize 64-bit inequalities best"
href="https://llvm.org/bugs/show_bug.cgi?id=13958">bug 13958</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;">CC</td>
<td>
</td>
<td>john.brawn.123@gmail.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - LLVM doesn't optimize 64-bit inequalities best"
href="https://llvm.org/bugs/show_bug.cgi?id=13958#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - LLVM doesn't optimize 64-bit inequalities best"
href="https://llvm.org/bugs/show_bug.cgi?id=13958">bug 13958</a>
from <span class="vcard"><a class="email" href="mailto:john.brawn.123@gmail.com" title="John Brawn <john.brawn.123@gmail.com>"> <span class="fn">John Brawn</span></a>
</span></b>
<pre>This was fixed in r268557. With latest trunk if I compile
int fn(long long a, int *p)
{
if (a < 0) {
*p = 1;
return 2;
} else if (a > 0) {
*p = 2;
return 3;
} else {
*p = 3;
return 4;
}
}
then InstCombine turns the a > 0 into a != 0.</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>