[PATCH] D76133: [ExpandMemCmp] Allow overlaping loads in the zero-relational case.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 13 07:29:07 PDT 2020
courbet created this revision.
courbet added a reviewer: spatel.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
This allows doing `memcmp(p, q, 7)` with 2 loads instead of a call to
memcmp.
This fixes part of PR45147.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76133
Files:
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/CodeGen/X86/memcmp-more-load-pairs.ll
llvm/test/CodeGen/X86/memcmp.ll
llvm/test/Transforms/ExpandMemCmp/X86/memcmp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76133.250196.patch
Type: text/x-patch
Size: 31747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200313/06e51422/attachment.bin>
More information about the llvm-commits
mailing list