[PATCH] D55263: [CodeGen][ExpandMemcmp] Add an option for allowing overlapping loads.

Clement Courbet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 4 04:52:06 PST 2018


courbet created this revision.
courbet added reviewers: spatel, gchatelet.

This allows expanding {7,11,13,14,15,21,22,23,25,26,27,28,29,30,31}-byte memcmp
in just two loads on X86. These were previously calling memcmp.


Repository:
  rL LLVM

https://reviews.llvm.org/D55263

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  lib/CodeGen/ExpandMemCmp.cpp
  lib/Target/X86/X86TargetTransformInfo.cpp
  test/CodeGen/X86/memcmp-optsize.ll
  test/CodeGen/X86/memcmp.ll
  test/Transforms/ExpandMemCmp/X86/memcmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55263.176606.patch
Type: text/x-patch
Size: 56354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181204/4e87fd91/attachment-0001.bin>


More information about the llvm-commits mailing list