[PATCH] D35035: [InstCombine] Prevent memcpy generation for small data size

Aditya Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 30 12:28:54 PDT 2018


hiraditya updated this revision to Diff 167660.
hiraditya added a comment.

Moved the check of Size before checking the LargestInt.


https://reviews.llvm.org/D35035

Files:
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  test/DebugInfo/X86/array2.ll
  test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll
  test/Transforms/InstCombine/alloca.ll
  test/Transforms/InstCombine/element-atomic-memintrins.ll
  test/Transforms/InstCombine/memcpy-to-load.ll
  test/Transforms/InstCombine/memmove.ll
  test/Transforms/InstCombine/pr31990_wrong_memcpy.ll
  test/Transforms/InstCombine/snprintf.ll
  test/Transforms/InstCombine/sprintf-1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35035.167660.patch
Type: text/x-patch
Size: 20661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180930/612b6a6c/attachment.bin>


More information about the llvm-commits mailing list