MEMSET / MEMCPY lowering bugs: we can't issue a single WORD / DWORD version of
authorEvan Cheng <evan.cheng@apple.com>
Sat, 4 Mar 2006 02:48:56 +0000 (02:48 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 4 Mar 2006 02:48:56 +0000 (02:48 +0000)
commit62bec2ca4c227a61fd9a38b23da81035e83f5733
tree7d8f1ad2ae02d5af7bd0233ec7c06f8102528b9b
parent973e0ef839ed3020eff02bba1d5112291ba0e1f8
MEMSET / MEMCPY lowering bugs: we can't issue a single WORD / DWORD version of
rep/stos and rep/mov if the count is not a constant. We could do
  rep/stosl; and $count, 3; rep/stosb
For now, I will lower them to memset / memcpy calls. We will revisit this after
a little bit experiment.

Also need to take care of the trailing bytes even if the count is a constant.
Since the max. number of trailing bytes are 3, we will simply issue loads /
stores.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26517 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp