[PATCH] D139615: [InstCombine] Expand memcpy to vector instead of integer load/store

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 02:10:37 PST 2022


nikic created this revision.
Herald added subscribers: zzheng, hiraditya.
Herald added a project: All.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Expanding into a vector ensures that byte-wise poison is preserved.


https://reviews.llvm.org/D139615

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
  llvm/test/Transforms/Inline/byval-tail-call.ll
  llvm/test/Transforms/InstCombine/alloca.ll
  llvm/test/Transforms/InstCombine/bcopy.ll
  llvm/test/Transforms/InstCombine/mem-par-metadata-memcpy.ll
  llvm/test/Transforms/InstCombine/memccpy.ll
  llvm/test/Transforms/InstCombine/memcpy-to-load.ll
  llvm/test/Transforms/InstCombine/memmove.ll
  llvm/test/Transforms/InstCombine/mempcpy.ll
  llvm/test/Transforms/InstCombine/snprintf-2.ll
  llvm/test/Transforms/InstCombine/snprintf-3.ll
  llvm/test/Transforms/InstCombine/snprintf.ll
  llvm/test/Transforms/InstCombine/sprintf-1.ll
  llvm/test/Transforms/InstCombine/stpncpy-1.ll
  llvm/test/Transforms/InstCombine/strlcpy-1.ll
  llvm/test/Transforms/InstCombine/strncpy-1.ll
  llvm/test/Transforms/InstCombine/strncpy-3.ll
  llvm/test/Transforms/InstCombine/struct-assign-tbaa-new.ll
  llvm/test/Transforms/InstCombine/struct-assign-tbaa.ll
  llvm/test/Transforms/PhaseOrdering/X86/SROA-after-final-loop-unrolling-2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139615.481208.patch
Type: text/x-patch
Size: 64985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221208/5907ec92/attachment.bin>


More information about the llvm-commits mailing list