<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:spatel+llvm@rotateright.com" title="Sanjay Patel <spatel+llvm@rotateright.com>"> <span class="fn">Sanjay Patel</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Failure to optimize out casting in division of casted char (to int)"
href="https://bugs.llvm.org/show_bug.cgi?id=46013">bug 46013</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 - Failure to optimize out casting in division of casted char (to int)"
href="https://bugs.llvm.org/show_bug.cgi?id=46013#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Failure to optimize out casting in division of casted char (to int)"
href="https://bugs.llvm.org/show_bug.cgi?id=46013">bug 46013</a>
from <span class="vcard"><a class="email" href="mailto:spatel+llvm@rotateright.com" title="Sanjay Patel <spatel+llvm@rotateright.com>"> <span class="fn">Sanjay Patel</span></a>
</span></b>
<pre>Fixed in IR:
<a href="https://reviews.llvm.org/rG2552f65183eb">https://reviews.llvm.org/rG2552f65183eb</a>
x86 codegen now shows:
movl %edi, %eax
shrl %eax
vs. gcc:
movsbl %dil, %eax
shrl %eax
Ie, we assume the 8-bit function argument is sign-extended to 32-bit as shown
in the IR from <a href="show_bug.cgi?id=46013#c1">comment 1</a>. So we don't need to explicitly set the high bits. If
that's a problem, please file a new bug for x86.</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>