Fix a number of byval / memcpy / memset related codegen issues.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 21 Aug 2008 21:00:15 +0000 (21:00 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 21 Aug 2008 21:00:15 +0000 (21:00 +0000)
commit1887c1c2f99903d13406e723f2dcbab4511e3f49
treea41725c80694a8834cd1eb9557d175b2880cb389
parent66b17ba0d263442b8b4e82aaa08acc0df85e1787
Fix a number of byval / memcpy / memset related codegen issues.
1. x86-64 byval alignment should be max of 8 and alignment of type. Previously the code was not doing what the commit message was saying.
2. Do not use byte repeat move and store operations. These are slow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55139 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/2004-02-12-Memcpy.ll
test/CodeGen/X86/byval3.ll
test/CodeGen/X86/byval4.ll
test/CodeGen/X86/byval5.ll
test/CodeGen/X86/memset-2.ll [new file with mode: 0644]
test/CodeGen/X86/memset64-on-x86-32.ll