[XCore] Target optimized library function __memcpy_4()
authorRichard Osborne <richard@xmos.com>
Thu, 27 Feb 2014 13:39:07 +0000 (13:39 +0000)
committerRichard Osborne <richard@xmos.com>
Thu, 27 Feb 2014 13:39:07 +0000 (13:39 +0000)
commitc26292d4dcc3f11279eb6bc524344d926bf3465e
tree334ca39f955d867d2ee684e3772d9679707351ef
parent83eab939a4f85b8571cee5c3907ac3de0f642f06
[XCore] Target optimized library function __memcpy_4()

Summary:
If the src, dst and size of a memcpy are known to be 4 byte aligned we
can call __memcpy_4() instead of memcpy().

Reviewers: robertlytton

Reviewed By: robertlytton

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2871

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202395 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/XCore/XCoreSelectionDAGInfo.cpp
lib/Target/XCore/XCoreSelectionDAGInfo.h
test/CodeGen/XCore/byVal.ll
test/CodeGen/XCore/memcpy.ll [new file with mode: 0644]