[PATCH] D34566: [loop idiom Recognition] support memcpy for multiple consecutive loads and stores
DIVYA SHANMUGHAN via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 23 12:20:43 PDT 2017
DIVYA created this revision.
Herald added a subscriber: mzolotukhin.
This pass converts multiple consecutive loads ans stores inside a loop to memcpy operation.
For example, the stores and loads in the below code can be converted to a memcpy .
struct foo
{
int a;
int b;
} f,g;
for(int i=0;i<n;i++)
{
f[i].a = g[i].a;
f[i].b = g[i].b;
}
Worked in collaboration with Sebastian Pop and Aditya Kumar.
https://reviews.llvm.org/D34566
Files:
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
llvm/test/Transforms/LoopIdiom/memcpy_structPattern.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34566.103759.patch
Type: text/x-patch
Size: 38757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170623/ab934920/attachment.bin>
More information about the llvm-commits
mailing list