[llvm-bugs] [Bug 41495] Suboptimal codegen: (x << 1) | 1 results in LEA+ADD while could be just LEA
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Apr 14 12:33:01 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41495
Craig Topper <craig.topper at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
--- Comment #1 from Craig Topper <craig.topper at gmail.com> ---
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 bug 41301 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190414/0d057fdd/attachment.html>
More information about the llvm-bugs
mailing list