<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:craig.topper@gmail.com" title="Craig Topper <craig.topper@gmail.com>"> <span class="fn">Craig Topper</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Suboptimal codegen: (x << 1) | 1 results in LEA+ADD while could be just LEA"
href="https://bugs.llvm.org/show_bug.cgi?id=41495">bug 41495</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;">Resolution</td>
<td>---
</td>
<td>DUPLICATE
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Suboptimal codegen: (x << 1) | 1 results in LEA+ADD while could be just LEA"
href="https://bugs.llvm.org/show_bug.cgi?id=41495#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Suboptimal codegen: (x << 1) | 1 results in LEA+ADD while could be just LEA"
href="https://bugs.llvm.org/show_bug.cgi?id=41495">bug 41495</a>
from <span class="vcard"><a class="email" href="mailto:craig.topper@gmail.com" title="Craig Topper <craig.topper@gmail.com>"> <span class="fn">Craig Topper</span></a>
</span></b>
<pre>This is intentional. According to Intel's optimization manuals "lea eax,
[rdi+1+rdi]" is slower than "lea eax, [rdi+rdi], add eax, 1"
*** This bug has been marked as a duplicate of <a class="bz_bug_link
bz_status_NEW "
title="NEW - Optimizer fails to generate SIB displacements in arithmetic expressions (x86_64)"
href="show_bug.cgi?id=41301">bug 41301</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>