[PATCH] D35035: [InstCombine] Prevent memcpy generation for small data size
DIVYA SHANMUGHAN via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 5 14:22:13 PDT 2017
DIVYA created this revision.
InstCombine pass converts @llvm.memcpy to either memcpy or LD/ST depending on if the data size is greater than 8 bytes or not.
However for different targets, 8 bytes may be smaller.
Hence, we queried target datalayout to find the threshold.
Worked in collaboration with Aditya Kumar
https://reviews.llvm.org/D35035
Files:
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/builtin_memcpy_pattern.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35035.105336.patch
Type: text/x-patch
Size: 19341 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170705/cc146ec5/attachment.bin>
More information about the llvm-commits
mailing list