[PATCH] D37177: [X86] Don't disable slow INC/DEC if optimizing for size
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 26 00:12:06 PDT 2017
craig.topper created this revision.
Just because INC/DEC is a little slow on some processors doesn't mean we shouldn't prefer it when optimizing for size.
This appears to match gcc behavior.
https://reviews.llvm.org/D37177
Files:
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrArithmetic.td
lib/Target/X86/X86InstrCompiler.td
lib/Target/X86/X86InstrInfo.td
test/CodeGen/X86/slow-incdec.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37177.112782.patch
Type: text/x-patch
Size: 7894 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170826/63cf9730/attachment.bin>
More information about the llvm-commits
mailing list