[llvm-bugs] [Bug 35911] New: BTS/BTR are preferable to MOVABS+AND
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jan 11 08:37:52 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=35911
Bug ID: 35911
Summary: BTS/BTR are preferable to MOVABS+AND
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: dave at znu.io
CC: llvm-bugs at lists.llvm.org
On both high-end and low-end Intel processors, using BTS/BTR to set/clear any
of the high 32 bits of a 64 bit register is preferable to the current MOVABS
followed by an AND instruction. BTS/BTR have latency of 1 cycle, but MOVABS+AND
has a combined latency of 2 cycles. The code density of BTS/BTR is more than
twice as good as MOVABS+AND and therefore decoder throughput is much better
too.
--
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/20180111/fef45a61/attachment-0001.html>
More information about the llvm-bugs
mailing list