[PATCH] D55494: [x86] allow 8-bit adds to be promoted by convertToThreeAddress() to form LEA
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 10 12:15:11 PST 2018
spatel marked an inline comment as done.
spatel added inline comments.
================
Comment at: lib/Target/X86/X86InstrInfo.cpp:810
unsigned Opc, leaInReg;
if (Subtarget.is64Bit()) {
Opc = X86::LEA64_32r;
----------------
craig.topper wrote:
> Is this ever called with a 32-bit subtarget? It looks like your new 8-bit calls are all only in 64 bit mode which is good since leaOutReg's regclass would be wrong otherwise.
No - it's always guarded with the Subtarget.is64Bit() check in the calls below here. So I just copied that existing code for the 8-bit enhancement. That seemed weird to me, but I wasn't sure how this code would break on 32-bit.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55494/new/
https://reviews.llvm.org/D55494
More information about the llvm-commits
mailing list