Refactor the memcpy lowering for the x86 target.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 28 Sep 2007 12:53:01 +0000 (12:53 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 28 Sep 2007 12:53:01 +0000 (12:53 +0000)
commit068317bfa37ec52ae25f3b2fa3194bea3e7c6027
treeabef4520cbf512c1700dd55b6fa0632e57cce83c
parentfa00feb7f8f8be8fd9c17a9ea54a1ab24f34229a
Refactor the memcpy lowering for the x86 target.

The only generated code difference is that now we call memcpy when
the size of the array is unknown. This matches GCC behavior and is
better since the run time value can be arbitrarily large.

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