Fix bug in x86 memcpy / memset lowering. If there are trailing bytes not handled...
authorEvan Cheng <evan.cheng@apple.com>
Fri, 25 Apr 2008 00:26:43 +0000 (00:26 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 25 Apr 2008 00:26:43 +0000 (00:26 +0000)
commit2749c72f30a6d424a09a0f8dc87e42e103d8315b
tree71c4f16a49651bc2a6f734e3374c1ec03829fa5c
parent13f7a405082ad154394b2f85e297668cf4ec8292
Fix bug in x86 memcpy / memset lowering. If there are trailing bytes not handled by rep instructions, a new memcpy / memset is introduced for them. However, since source / destination addresses are already adjusted, their offsets should be zero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50239 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/2008-04-24-MemCpyBug.ll [new file with mode: 0644]