[PATCH] D58869: [X86] Allow 8-bit INC/DEC to be converted to LEA.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 1 23:35:22 PST 2019


craig.topper created this revision.
craig.topper added reviewers: spatel, RKSimon.

We already do this for 16/32/64 as well as 8-bit add with register/immediate. Might as well do it for 8-bit INC/DEC too.


https://reviews.llvm.org/D58869

Files:
  lib/Target/X86/X86InstrArithmetic.td
  lib/Target/X86/X86InstrInfo.cpp
  test/CodeGen/X86/MergeConsecutiveStores.ll
  test/CodeGen/X86/copy-eflags.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58869.189037.patch
Type: text/x-patch
Size: 4516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190302/4b7d5781/attachment.bin>


More information about the llvm-commits mailing list