[PATCH] D115602: [X86] Memset is lowered to rep stos if MinSize is present
Daniil Seredkin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 12 11:12:37 PST 2021
vdsered created this revision.
vdsered added reviewers: spatel, RKSimon.
Herald added subscribers: pengfei, hiraditya.
vdsered requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
X86 does not to account for MinSize when lowering memset which leads to larger code size than it is possible to get, for example, with using rep stos which is already in use in GCC.
This patch must reduce code size for memset when MinSize is used.
Issue with some more details: https://github.com/llvm/llvm-project/issues/51196
https://reviews.llvm.org/D115602
Files:
llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/Target/X86/X86SelectionDAGInfo.cpp
llvm/lib/Target/X86/X86SelectionDAGInfo.h
llvm/test/CodeGen/X86/memset-minsize.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115602.393768.patch
Type: text/x-patch
Size: 10507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211212/ead91881/attachment.bin>
More information about the llvm-commits
mailing list