<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:kkhoo@perfwizard.com" title="Kay Tiong Khoo <kkhoo@perfwizard.com>"> <span class="fn">Kay Tiong Khoo</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [instcombine comparison] wrong codegen at -O1 (affecting clang trunk, 3.3, and 3.2)"
href="http://llvm.org/bugs/show_bug.cgi?id=17827">bug 17827</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>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [instcombine comparison] wrong codegen at -O1 (affecting clang trunk, 3.3, and 3.2)"
href="http://llvm.org/bugs/show_bug.cgi?id=17827#c42">Comment # 42</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [instcombine comparison] wrong codegen at -O1 (affecting clang trunk, 3.3, and 3.2)"
href="http://llvm.org/bugs/show_bug.cgi?id=17827">bug 17827</a>
from <span class="vcard"><a class="email" href="mailto:kkhoo@perfwizard.com" title="Kay Tiong Khoo <kkhoo@perfwizard.com>"> <span class="fn">Kay Tiong Khoo</span></a>
</span></b>
<pre>Patch committed in r197705.
Author: kkhoo
Date: Thu Dec 19 12:07:17 2013
New Revision: 197705
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=197705&view=rev">http://llvm.org/viewvc/llvm-project?rev=197705&view=rev</a>
Log:
Improved fix for PR17827 (instcombine of shift/and/compare).
This change fixes the case of arithmetic shift right - do not attempt to fold
that case.
This change also relaxes the conditions when attempting to fold the logical
shift right and shift left cases.
No additional IR-level test cases included at this time. See
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [instcombine comparison] wrong codegen at -O1 (affecting clang trunk, 3.3, and 3.2)"
href="show_bug.cgi?id=17827">http://llvm.org/bugs/show_bug.cgi?id=17827</a> for proofs that these are correct
transformations.</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>